Monaen's WikiAnaconda 2017-03-26
Anaconda Installation
Anaconda Command
- Use
conda
to create virtual environment1
2
3conda create -n py2 python=2 %% create a virtual environment with python 2.* installed
conda create -n py3 python=3 %% create a virtual environment with python 3.* installed
Environments
share environments
Generate your own
environment.yaml
file1
conda env export > environment.yaml
For people not using conda, share the pip
requirements.txt
file: more information1
pip freeze > requirements.txt
Listing environments
- Use
conda env list
to list out all the environments you’ve created. You should see a list of environments, there will be an asterisk next to the environment you’re currently in. The default environment, the environment used when you aren’t in one, is calledroot
.
Removing environments
- Use
conda env remove -n env_name
will remove the specified environment (here, namedenv_name
).