How to use intel python from anaconda?

3.6k Views Asked by At

I used this

conda  create --name intelpy --channel intel --override-channels intelpython

to create an environment and install intelpython

and conda info --envs shows

# conda environments:
#
intelpy               *  /home/admin-pc/anaconda3/envs/intelpy
py27                     /home/admin-pc/anaconda3/envs/py27
root                     /home/admin-pc/anaconda3

However, when I source activate intelpy

admin-pc@Precision-Tower:~$ source activate intelpy
(intelpy) admin-pc@Precision-Tower:~$ which python
/home/admin-pc/anaconda3/bin/python

it still uses the anaconda python, what is wrong?


Thanks to orangeInk. Adding python=3.6 works

conda  create --name intelpy --channel intel --override-channels intelpython python=3.6
1

There are 1 best solutions below

3
orangeInk On BEST ANSWER

You should add the python argument to your create command. Omitting it will make the new environment use the system default Python interpreter rather than installing a new one.

conda create --name intelpy python=3.6

(use 2.7 instead of 3.6 for a Python 2 environment)