pythonanacondacondaintel-python

How to use intel python from anaconda?


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

Solution

  • 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)