因为我系统里先后安装了3个python版本,而且之前的ancanda安装之后还改了文件名导致环境出现问题
所以我进行了ancanda重装-->python环境切换
python环境切换
conda create - py27 python=2.7
conda info --envs
activate py27
python -V
如果要删除环境conda remove --name py27 --all
其中conda create - py27 python=2.7报错
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64/repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/r/win-64/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),)
解决办法
1.有镜像源时将“https”换成“http”(这是我的解决办法)
2.没有镜像源的增加镜像源
3.关代理,换网络