I want to use the anaconda distribution for ipython, but typing ipython on the terminal gives an error message:
Traceback (most recent call last): File "/usr/local/bin/ipython", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req)
Adding PATH to .bash_profile as shown below gives the same error message. By asking which python produces //anaconda/bin/python , and which ipython produces /usr/local/bin/ipython . How can I fix this so that ipython starts anaconda ipython?
# MacPorts Installer addition on 2012-11-03_at_23:50:01: adding an appropriate PATH variable for use with MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. # Add colors to terminal export CLICOLOR=1 export LSCOLORS=ExFxBxDxCxegedabagacad # added by Anaconda 1.6.1 installer export PATH="//anaconda/bin:$PATH" export PATH=/anaconda
Update: I updated anaconda and ipython using conda update as suggested, but still getting the same error message.
Update 2: Thanks for all the suggestions. I changed /usr/local/bin/ipython as follows:
#!//anaconda/bin/python
Now which ipython creates // anaconda / bin / ipython and starts ipython .
source share