Reputation: 41
I get this when i type "echo $PATH"
in the terminal on my Mac:
mattdevlins-MacBook-Pro:~ mattdevlin$ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin
mattdevlins-MacBook-Pro:~ mattdevlin$
Does this mean I have multiple copies of Python running?
I'm trying to get Scrapy running. Can't figure it out. easy_install is not working.
Upvotes: 0
Views: 211
Reputation: 10397
You can also set the VERSIONER_PYTHON_VERSION
environmental variable to point to whatever flavor of python you want in OsX. This will invoke the right interpreter if you just run python
in the command line.
export VERSIONER_PYTHON_VERSION=2.7 # bash shell
setenv VERSIONER_PYTHON_VERSION 2.7 # csh or tcsh shells
Upvotes: 1
Reputation: 500327
Does this mean I have multiple copies of Python running?
You almost certainly have multiple versions installed, but not necessarily running.
For example, I have Python 2.5, 2.6, 2.7 and 3.3 installed on my computer. They co-exist rather happily.
You can launch a specific version by typing python2.7
or python3.3
etc.
Upvotes: 1