2025-03-14 21:59:59 -06:00
|
|
|
# conda create
|
|
|
|
|
|
|
|
|
|
> Create new conda environments.
|
|
|
|
|
> More information: <https://docs.conda.io/projects/conda/en/latest/commands/create.html>.
|
|
|
|
|
|
|
|
|
|
- Create a new environment named `py39`, and install Python 3.9 and NumPy v1.11 or above in it:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda create {{[-y|--yes]}} {{[-n|--name]}} {{py39}} python={{3.9}} "{{numpy>=1.11}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Make exact copy of an environment:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda create --clone {{py39}} {{[-n|--name]}} {{py39-copy}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new environment with a specified name and install a given package:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conda create {{[-n|--name]}} {{env_name}} {{package}}`
|