I having problems trying to install some packages using virtualenv on Cedar. I am following the directions found on https://docs.computecanada.ca/wiki/Python but however I keep running into one of two problems: unable to load python 3.7, or able to load python 3.7 but unable to use pip install. I am able to create the virtual environment successfully, but the problems come when I’m installing modules. I’ve tried the commands in two different orders which produced two undesirable results:
$ module load python/3.7.0
$ source ~/ENV/bin/activate
$ pip install numpy --no-index
This allows me to install numpy (or any other package), but when I try to open python using $python, I go into python 2.7.14 not 3.7.0. (Is there a command that allows me to open python 3.7.0 specifically?)
However when I tried it another way:
$ source ~/ENV/bin/activate
$ module load python/3.7.0
$ pip install numpy --no-index
This allows me to open python 3.7.0 when I type $python but however does not allows me to use pip commands.
I also tried using pip first before using module load python/3.7.0 This would allows me to use pip install but however upon opening python, the package I have installed previously can not be found. I am aware using the second method I can also use module load SciPy-stack which contains numpy and is able to be imported into Python 3.7.0, but I need the joblib package which is not included.
I have attached 2 simple images of both results in case that helps more. I really appreciate your help. Thanks!
There I show the 2 cases. Case 2 is the picture above and case 1 is the picture below.