conda create
时间: 2023-09-07 16:15:07 浏览: 41
"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.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)