conda-env
Provides the conda env interface to Conda environments.
Installing
To install conda env with conda, run the following command in your root environment:
$ conda install -c conda conda-env
Usage
All of the usage is documented via the --help flag.
$ conda env --help
usage: conda-env [-h] {create,export,list,remove} ...
positional arguments:
{attach,create,export,list,remove,upload,update}
attach Embeds information describing your conda environment
into the notebook metadata
create Create an environment based on an environment file
export Export a given environment
list List the Conda environments
remove Remove an environment
upload Upload an environment to anaconda.org
update Updates the current environment based on environment
file
optional arguments:
-h, --help show this help message and exit
environment.yml
conda-env allows creating environments using the environment.yml specification file. This allows you to specify a name, channels to use when creating the environment, and the dependencies. For example, to create an environment named stats with numpy and pandas create an environment.yml file with this as the contents:
name: stats
dependencies:
- numpy
- pandas
Then run this from the command line:
$ conda env create
Fetching package metadata: ...
Solving package specifications: .Linking packages ...
[ COMPLETE ] |#################################################| 100%
#
# To activate this environment, use:
# $ source activate numpy
#
# To deactivate this environment, use:
# $ source deactivate
#
Your output might vary a little bit depending on whether you have the packages in your local package cache.
You can explicitly provide an environment spec file using -f or --file and the name of the file you would like to use.
Envronment file example
name: stats
channels:
- javascript
dependencies:
- python=3.4 # or 2.7 if you are feeling nostalgic
- bokeh=0.9.2
- numpy=1.9.*
- nodejs=0.10.*
- flask
- pip:
- Flask-Testing
Recommendation: Always create your environment.yml file by hand.
Metadata
Release files for conda-env 2.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conda-env-2.4.2.tar.gz | 13.3 kB | Without provenance | Details for conda-env-2.4.2.tar.gz |
Release files / conda-env-2.4.2.tar.gz
| Download URL | conda-env-2.4.2.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d64b5b7ef4ecb7ffaf58bf3b1f95a3de545387f7d65c893970417cc76efc1a1
|
|
BLAKE2b-256 checksum How to use checksums |
501b6c03bdbacf94f601a8213d97ad018e22ee075374fcca020214c80c948a6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for conda-env 2.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.