Managing Conda and Anaconda
Verify conda is installed, check version
Get the version
1 |
|
1 |
|
Update conda package and environment manager
1 |
|
Update the anaconda meta package
1 |
|
Managing Environments
Get a list of all my Anaconda environments
1 |
|
Create an Anaconda environment
1 |
|
Create an Anaconda environment with a specific version of Python
1 |
|
Create an Anaconda environment with a specific package
1 |
|
Create an Anaconda environment from an existing environment (fork / branch)
1 |
|
Create an Anaconda environment from an environment.yml
file
1 |
|
Copy the Anaconda environment into an environment.yml
file
1 |
|
In order to create an Anaconda environment file manually, see https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#create-env-file-manually
Activate an Anaconda environment to use it
1 |
|
Deactivate the Anaconda environment
1 |
|
Delete an Anaconda environment
1 |
|
Installing python packages
1 |
|
If you encounter the error PackagesNotFoundError: The following packages are not available from current channels
, do the following:
1 |
|
conda-forge
is a GitHub organization containing repositories of conda recipes. Thanks to some awesome continuous integration providers, each repository automatically builds its own recipe in a clean and repeatable way on Windows, Linux and OSX.
If a package cannot be easily installed with pip
because of issues with system libraries (e.g. version of gcc
), a possible solution is to install the package with conda
, which is less dependent on system libraries.
Troubleshooter
- “Collecting package metadata” cannot proceed and never end #9221 https://github.com/conda/conda/issues/9221
- failed to create anaconda environment ResolvePackageNotFound https://stackoverflow.com/questions/48439159/failed-to-create-anaconda-environment-resolvepackagenotfound
References
- https://kapeli.com/cheat_sheets/Conda.docset/Contents/Resources/Documents/index
- https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment