我上Macbook Air
運行的蟒蛇,我意識到,我有蟒蛇的許多版本通過多條路徑Python:多個安裝,如何修復一個Python版本?
[email protected]~ - 11:43:51 $ which python
python is /Users/hhimanshu/.virtualenvs/envs/bi/bin/python
python is /Library/Frameworks/Python.framework/Versions/Current/bin/python
python is /opt/local/bin/python
python is /usr/bin/python
(bi)[email protected]~ - 11:56:54 $ /Users/hhimanshu/.virtualenvs/envs/bi/bin/python --version
Python 2.7.2
(bi)[email protected]~ - 11:57:03 $ /Library/Frameworks/Python.framework/Versions/Current/bin/python --version
Python 2.7.3 -- EPD_free 7.3-2 (32-bit)
(bi)[email protected]~ - 11:57:13 $ /opt/local/bin/python --version
Python 2.7.3
(bi)[email protected]~ - 11:57:22 $ /usr/bin/python --version
Python 2.7.2
我$PATH
值看起來像
(bi)[email protected]~ - 11:57:28 $ echo $PATH
/Users/hhimanshu/.virtualenvs/envs/bi/bin:/Users/hhimanshu/.pythonbrew/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/Users/hhimanshu/.rvm/gems/ruby-1.9.2-p318/bin:/Users/hhimanshu/.rvm/gems/[email protected]/bin:/Users/hhimanshu/.rvm/rubies/ruby-1.9.2-p318/bin:/Users/hhimanshu/.rvm/bin:/Users/hhimanshu/.rbenv/shims:/Users/hhimanshu/.rbenv/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mongodb/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/hhimanshu/.ec2/bin
我看到的問題,因爲當我使用virtualenv
並看看我有什麼蟒蛇版本,我看到
$ yolk -l
Python - 2.7.2 - active development (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
pip - 1.2.1 - active
setuptools - 0.6c11 - active
wsgiref - 0.1.2 - active development (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
yolk - 0.4.3 - active
但是w我需要的帽子是
$ /Library/Frameworks/Python.framework/Versions/Current/bin/python --version
Python 2.7.3 -- EPD_free 7.3-2 (32-bit)
我該如何修復我的環境?