Note that there are some explanatory texts on larger screens.

plurals
  1. POPython: multiple installations, How to fix on one python version?
    text
    copied!<p>I am running python on <code>Macbook Air</code> and I realized that I have many versions of python installed available via multiple paths</p> <pre><code>hhimanshu@air~ - 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)hhimanshu@air~ - 11:56:54 $ /Users/hhimanshu/.virtualenvs/envs/bi/bin/python --version Python 2.7.2 (bi)hhimanshu@air~ - 11:57:03 $ /Library/Frameworks/Python.framework/Versions/Current/bin/python --version Python 2.7.3 -- EPD_free 7.3-2 (32-bit) (bi)hhimanshu@air~ - 11:57:13 $ /opt/local/bin/python --version Python 2.7.3 (bi)hhimanshu@air~ - 11:57:22 $ /usr/bin/python --version Python 2.7.2 </code></pre> <p>My <code>$PATH</code> value looks like</p> <pre><code>(bi)hhimanshu@air~ - 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/ruby-1.9.2-p318@global/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 </code></pre> <p>I see issue because when I use <code>virtualenv</code> and see what python version I have, I see</p> <pre><code> $ 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 </code></pre> <p>But what I need is </p> <pre><code>$ /Library/Frameworks/Python.framework/Versions/Current/bin/python --version Python 2.7.3 -- EPD_free 7.3-2 (32-bit) </code></pre> <p>How can I fix my environment?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload