Unable to run ipython notebook or anaconda (conda) commands in terminal

deets

I am trying to get the ipynb running on my Mac, but I am running into some trouble. I specifically want to run the ipynb that comes with Anaconda.

This question is very close to helping me but I am not sure what to do with the results from checking which python, which python2.7, which ipython.

When I type 'ipython' into the terminal, I get

/bin/bash: /Users/me/anaconda/bin/python.app: No such file or directory

Anaconda isn't even located in /Users/me/ so I don't know why bash is looking there when I've put /usr/local/bin/anaconda/bin at the front of my path (which I did after that post suggested I check my path variable).

$ which anaconda 
/usr/local/bin/anaconda/bin/anaconda

$ which python
/usr/local/bin/anaconda/bin/python`

$ which python2.7
/usr/local/bin/anaconda/bin/python2.7

$ which ipython
/usr/local/bin/anaconda/bin/ipython

I tried this to see if it worked, because I'm guessing it is related to the problem I am having:

$ conda -h
-bash: /usr/local/bin/anaconda/bin/conda: /Users/me/anaconda/bin/python: bad interpreter: No such file or directory`

From the responses I'm getting from bash, it looks like everything is pointing to where it should be, so then why, when I type ipython or conda into the terminal, do I get those errors?

(Not sure if this is related, but some posts I've seen refer to changing the pip file to point to the version of Python I want, but I am not quite sure where to find the 'pip file'. I went looking for it wherever my pip is stored but I couldn't find a file per say.)

John Morrison

It is most likely looking in the wrong place. Standard installations would be in /Users/username/anaconda/bin. If you have installed it in /usr/local/bin/anaconda/bin/python you will want to be sure it is in you .bash_profile. In terminal run the following:

open .bash_proflie

Add the following:

export PATH="/usr/local/bin/anaconda/bin:$PATH"

Again the usual Path would be:

export PATH="/Users/me/anaconda/bin:$PATH"

Be sure to relaunch terminal or run "source .bash_profile"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Run ipython notebook in different anaconda environment (in script)

From Dev

Run ipython notebook server and close terminal

From Dev

Unable to run ipython-notebook 2.7 with jupyterhub

From Dev

Unable to run ipython-notebook 2.7 with jupyterhub

From Dev

Unable to run anaconda-navigator out of conda envirnment (base)

From Dev

ipython notebook command in anaconda opens jupyter notebook?

From Dev

can not start ipython notebook from anaconda

From Dev

Anaconda: Python 3 and 2 in IPython/Jupyter Notebook

From Dev

IPython notebook - unable to export to pdf

From Dev

IPython notebook - unable to export to pdf

From Dev

How to run GraphX on IPython Notebook?

From Dev

Ipython notebook - Create a new notebook (Python conda or default Python)

From Dev

Run commands “without” terminal

From Dev

Run commands “without” terminal

From Dev

Connect terminal IPython to existing notebook kernel

From Dev

Connect terminal IPython to existing notebook kernel

From Dev

Unable to run import scikit-image in jupyter notebook despite successful installation of scikit-image in Anaconda

From Dev

Unable to plot worldmap with Vincent in iPython notebook

From Dev

Run ipython notebook from a remote server

From Dev

run ipython notebook remotely through ssh tunneling

From Dev

Ipython Notebook: how to run multiple cells?

From Java

Automatically run %matplotlib inline in IPython Notebook

From Dev

Run IPython notebook with Spark in another directory

From Dev

Is there a way to run multiple cells simultaneously in IPython notebook?

From Dev

Is there a way to run scala code in the ipython notebook?

From Dev

How to "Run ALL" in IPython Notebook in PyCharm?

From Dev

Error while trying to launch IPython Notebook from Anaconda

From Dev

How to activate Ipython Notebook and QT Console with Python 3.4 in Anaconda 2.0

From Dev

Error while trying to launch IPython Notebook from Anaconda

Related Related

  1. 1

    Run ipython notebook in different anaconda environment (in script)

  2. 2

    Run ipython notebook server and close terminal

  3. 3

    Unable to run ipython-notebook 2.7 with jupyterhub

  4. 4

    Unable to run ipython-notebook 2.7 with jupyterhub

  5. 5

    Unable to run anaconda-navigator out of conda envirnment (base)

  6. 6

    ipython notebook command in anaconda opens jupyter notebook?

  7. 7

    can not start ipython notebook from anaconda

  8. 8

    Anaconda: Python 3 and 2 in IPython/Jupyter Notebook

  9. 9

    IPython notebook - unable to export to pdf

  10. 10

    IPython notebook - unable to export to pdf

  11. 11

    How to run GraphX on IPython Notebook?

  12. 12

    Ipython notebook - Create a new notebook (Python conda or default Python)

  13. 13

    Run commands “without” terminal

  14. 14

    Run commands “without” terminal

  15. 15

    Connect terminal IPython to existing notebook kernel

  16. 16

    Connect terminal IPython to existing notebook kernel

  17. 17

    Unable to run import scikit-image in jupyter notebook despite successful installation of scikit-image in Anaconda

  18. 18

    Unable to plot worldmap with Vincent in iPython notebook

  19. 19

    Run ipython notebook from a remote server

  20. 20

    run ipython notebook remotely through ssh tunneling

  21. 21

    Ipython Notebook: how to run multiple cells?

  22. 22

    Automatically run %matplotlib inline in IPython Notebook

  23. 23

    Run IPython notebook with Spark in another directory

  24. 24

    Is there a way to run multiple cells simultaneously in IPython notebook?

  25. 25

    Is there a way to run scala code in the ipython notebook?

  26. 26

    How to "Run ALL" in IPython Notebook in PyCharm?

  27. 27

    Error while trying to launch IPython Notebook from Anaconda

  28. 28

    How to activate Ipython Notebook and QT Console with Python 3.4 in Anaconda 2.0

  29. 29

    Error while trying to launch IPython Notebook from Anaconda

HotTag

Archive