나는 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
내가 virtualenv
를 사용할 때 때문에이 문제를 볼
(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
처럼 내
$PATH
값이 보인다 내가 가지고있는 파이썬 버전을 확인하십시오.
$ 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)
내 환경을 어떻게 수정합니까?