Anaconda

by | Jun 9, 2018 | Software |

Environments

Create

Creating en environment allows the user to define python version and custom packages

conda create --name my_app package1 package2
conda create --name my_app python=2.7 package1 package2

Example: Create the environment my_app and install the pyside package.

conda create --name my_app pyside

or

conda create --name my_app
conda install --name my_app pyside

Activating / Deactivating

Activating an environment for the development of a specific project.

activate my_app

List installed packages in the activated environment. See example bellow:

conda list

# packages in environment at C:\Anaconda2\envs\my_app:
#
# Name                    Version                   Build  Channel
certifi                   2018.4.16                py27_0
pip                       10.0.1                   py27_0
pyside                    1.2.1                    py27_0
python                    2.7.15               he216670_0
setuptools                39.2.0                   py27_0
vc                        9                    h7299396_1
vs2008_runtime            9.00.30729.1         hfaea7d5_1
wheel                     0.31.1                   py27_0
wincertstore              0.2              py27hf04cefb_0

Deactivate the current environment and return to the base environment.

deactivate

List

List the available environments

conda env list

Remove

Removes the installed packages. Certain set of files and directories are kept!

conda remove --name my_app -all