php自适应网站,外贸建站网站推广,用凡科做的网站打不开,湖北疾控发布最新通告解决Anaconda出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url
第一类情况 在anaconda创建新环境时#xff0c;使用如下代码
conda create -n charts python3.7 错误原因#xff1a; 默认镜像源访问速度过慢#xff0c;会导致超时从而导致更新和下载失败。
解决方…解决Anaconda出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url
第一类情况 在anaconda创建新环境时使用如下代码
conda create -n charts python3.7 错误原因 默认镜像源访问速度过慢会导致超时从而导致更新和下载失败。
解决方案 方法1更换镜像源为清华镜像源并且删除默认镜像源。
首先执行如下几条命令更换清华镜像源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --set show_channel_urls yes
如果无法运行成功 镜像URL要是https改为http
更改镜像源配置文件 然后在“C:\Users\Administrator你的用户名”目录下找到“.condarc”文件并打开若channels下面有-default删除-default保存即可 使用pycharm或者命令行中的conda创建虚拟环境并且耐心等待即可 方法2先用vim打开./condarc文件然后手动添加源 #open .condarc file
vi /home/xuran/.condarc#add the following code
ssl_verify: true
channels:- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/show_channel_urls: true 第二类情况 抓包的时候开了代理只要在浏览器设置里关掉代理就可以了 【常见模块错误】 如果出现模块错误 进入控制台输入建议使用国内镜像源pip install 模块名称 -i https://mirrors.aliyun.com/pypi/simple我大致罗列了以下几种国内镜像源清华大学
https://pypi.tuna.tsinghua.edu.cn/simple阿里云
https://mirrors.aliyun.com/pypi/simple/豆瓣
https://pypi.douban.com/simple/百度云
https://mirror.baidu.com/pypi/simple/中科大
https://pypi.mirrors.ustc.edu.cn/simple/华为云
https://mirrors.huaweicloud.com/repository/pypi/simple/腾讯云
https://mirrors.cloud.tencent.com/pypi/simple/