conda create
时间: 2023-09-07 09:15:07 浏览: 86
"conda create" is a command used in the Anaconda distribution to create a new Python environment with specific packages and dependencies.
To use this command, open your terminal or command prompt and enter:
```
conda create --name myenv
```
This creates a new environment named "myenv" with the default version of Python. You can specify a specific version of Python by adding "python=x.x" after "myenv". For example:
```
conda create --name myenv python=3.8
```
You can also include specific packages and dependencies in the new environment by listing them after the environment name. For example:
```
conda create --name myenv pandas numpy matplotlib
```
This creates a new environment named "myenv" with the packages pandas, numpy, and matplotlib installed.
阅读全文