Jun 18, 2019

Create python virutal environment for ML

unloaded existing python module - as I had already python 3.7 by now)
look for all python modules

load python/3.7.0-anaconda3-5.3.0

$ conda -V

Update conda
conda update conda


conda create -n MLenv python=3.7 anaconda
Now you are asked for update step.

Then activate the environment:

source activate MLenv

Now we have our python 3.7 environment
We can install all the frameworks we need here.

To deactivate the environment,

source deactivate

.
.
.
.
.
.
.
.

6. Delete a no longer needed virtual environment

  1. To delete a conda environment, enter the following, where yourenvname is the name of the environment you wish to delete.
conda remove -n yourenvname -all


I figured out that TensorFlow 1.12.0 only works with Python version 3.5.2. I had Python 3.7 but that didn't work. So, I had to downgrade Python and then I could install TensorFlow to make it work.
To downgrade your python version from 3.7 to 3.6
conda install python=3.6.8



Environment location:

/ccs/home/uma/.conda/envs/pyTFptEnv






Followers