2021-05-27 02:14:24 +01:00
|
|
|
# conda create
|
|
|
|
|
|
|
|
> Create new conda environments.
|
|
|
|
> More information: <https://docs.conda.io/projects/conda/en/latest/commands/create.html>.
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Create a new environment named `py39`, and install Python 3.9 and NumPy v1.11 or above in it:
|
2021-05-27 02:14:24 +01:00
|
|
|
|
|
|
|
`conda create --yes --name {{py39}} python={{3.9}} "{{numpy>=1.11}}"`
|
|
|
|
|
|
|
|
- Make exact copy of an environment:
|
|
|
|
|
|
|
|
`conda create --clone {{py39}} --name {{py39-copy}}`
|
|
|
|
|
|
|
|
- Create a new environment with a specified name and install a given package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`conda create --name {{env_name}} {{package}}`
|