Setup environment for python

Anaconda Installation

For the installation, follow the link below:
https://docs.anaconda.com/anaconda/install

After completing the installation, To control whether or not each shell session has the base environment activated or not, run 

$ conda config --set auto_activate_base False or True 

To run conda from anywhere without having the base environment activated by default, use 

conda config --set auto_activate_base False

This only works if you have run conda init first.

To export the virtual environment, you can create a yml file by executing:

$ conda env export --no-build > environment.yml

After that, you can restore the environment in server end by executing:

$  conda env create -f environment.yml 

About Author


Author

Leave a Reply

Your email address will not be published. Required fields are marked *