Resolving 2 Python version in Mac OSX -


i running mac os x 10.11.5. have 2 python versions on machine:

  1. python 2.7 (inbuilt python in osx) ,

  2. python 3.5 (anaconda version- 4.1.1)

the path set shown:

$path

-bash: /users/usernms/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin: no such file or directory

the problem when trying install few packages pandas, theano etc., using anaconda. error: failure: importerror (no module found)

by default python path points 1 i.e (python version- 2.7)

> whereis python

/usr/bin/python 

but actual path want work python 3.5 (anaconda version):

> python  /users/usernms/anaconda/bin/python 

the python site packages path follows:

/users/usernms/anaconda/lib/python3.5/site-packages 

the packages site-packages ( pandas, theano etc., ) not getting retrieved above path, giving away import error

please me on !! in advance :)

my approach create new conda enviornment , install packages there. avoid issues if still want use 2.7. example be:

conda create --name foo python=3 pandas theano


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -