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.
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
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.
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