d:\ProgramData\Anaconda3\Scripts\activate
conda create -n py3.7 python=3.7
产生错误
Collecting package metadata (repodata.json): failed UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: pypi/simple channel url: http://mirrors.aliyun.com/pypi/simple error code: 404 You will need to adjust your conda configuration to proceed. Use
conda config --show channels
to view your configuration’s current state, and useconda config --show-sources
to view config file locations.
(base) E:\vscode\zhaopin>conda config --show channels
channels:
- http://mirrors.aliyun.com/pypi/simple/
(base) E:\vscode\zhaopin>conda config --show-sources
==> C:\Users\DELL\.condarc <==
ssl_verify: True
channels:
- http://mirrors.aliyun.com/pypi/simple/
show_channel_urls: True
移除指定的案例镜像
(base) E:\vscode\zhaopin>conda config --remove-key channels
(base) E:\vscode\zhaopin>conda config --show-sources
==> C:\Users\DELL\.condarc <==
ssl_verify: True
show_channel_urls: True
(base) E:\vscode\zhaopin>conda config --show channels
channels:
- defaults
conda create -n py3.7 python=3.7.0
conda activate py3.7
conda env list