Anaconda的下載鏈接
https://www.anaconda.com/distribution/
可以點擊下載完成後直接安裝到默認的目錄或者指定的目錄。
安裝完成後配置環境變量:
安裝路徑:C:\ProgramData\Anaconda3\Scripts
將Anaconda的安裝路徑添加到Path中如下圖所示,
window10可以通過
第一種方式:客戶端圖形化界面操作
點擊創建,創建新的環境,選擇python的版本
第二種:通過cmd命令行
使用命令的方式創建新的環境,創建環境的過程中會出現SSLError的問題,異常如下所示:
# 創建虛擬環境 -n指定名稱 python=3.6指定安裝軟件版本
conda create -n test python=3.6
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
解決方式:
找到conda的源配置文件C:\Users\Administrator
更換爲清華源
channels:
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- defaults
show_channel_urls: true
ssl_verify: false