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


i trying ipynb running on mac, running trouble. want run ipynb comes anaconda.

this question close helping me not sure results checking which python, which python2.7, which ipython.

when type 'ipython' terminal,

/bin/bash: /users/me/anaconda/bin/python.app: no such file or directory 

anaconda isn't located in /users/me/ don't know why bash looking there when i've put /usr/local/bin/anaconda/bin @ front of path (which did after post suggested check path variable).

$ anaconda  /usr/local/bin/anaconda/bin/anaconda  $ python /usr/local/bin/anaconda/bin/python`  $ python2.7 /usr/local/bin/anaconda/bin/python2.7  $ ipython /usr/local/bin/anaconda/bin/ipython 

i tried see if worked, because i'm guessing related problem having:

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

from responses i'm getting bash, looks pointing should be, why, when type ipython or conda terminal, errors?

(not sure if related, posts i've seen refer changing pip file point version of python want, not quite sure find 'pip file'. went looking wherever pip stored couldn't find file per say.)

it looking in wrong place. standard installations in /users/username/anaconda/bin. if have installed in /usr/local/bin/anaconda/bin/python want sure in .bash_profile. in terminal run following:

open .bash_proflie 

add following:

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

again usual path be:

export path="/users/me/anaconda/bin:$path" 

be sure relaunch terminal or run "source .bash_profile"


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -