Resolving 2 Python version in Mac OSX -
i running mac os x 10.11.5. have 2 python versions on machine:
python 2.7 (inbuilt python in osx) ,
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
Post a Comment