How to run another copy of python 3

Question:

I have tow copies of python 3 on my mac (running macOS Sierra, Mid 2012) one with pygame installed and one without.

If I try to run my game script I get an error message that there is no module named pygame

I use sublime text to edit my python files and want the terminal open to just hit the up arrow and Enter to run my scrip after I edited it.

Asked By: Hein Gertenbach

||

Answers:

Virtual environments are a good practice in python development. Install virtualenv.

sudo pip install virtualenv

Create new virtual environment then activate it and install all required packages. This approach will allow you to have specific packages for each project you’re working on.

More about virtual environments here

Answered By: ryche
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.