conda命令下载包报错总结

1、Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/lxml/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping

可以考虑换源
如果在使用docker中遇到这个错误,可能是创建容器时没有–net=host

pip install pyqt5-tools -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
2、PackagesNotFoundError: The following packages are not available from current channels:
conda config --set remote_read_timeout_secs 10000.0

执行上面这行命令,再重新安装

3、OSError: [Errno 18] Invalid cross-device link and OSError: [Errno 22] Invalid argument: #6943

更新conda版本,不要在已经进入的虚拟环境中更新,在base环境下更新

 conda config --add channels conda-canary
 conda update conda
4、ERROR: No matching distribution found for cv2
pip install opencv-python
5、ImportError: libGL.so.1: cannot open shared object file: No such file or directory

原因:缺少共享库

sudo apt update 
sudo apt install libgl1-mesa-glx

可能容器内没有sudo指令吗,也可以使用如下等价命令:

apt-get update
apt-get install sudo
6、连接不上网络,一般切换conda源可以解决

中科大源

 conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
    
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

conda config --set show_channel_urls yes

更新源后还可能获取不到安装包,这时候恢复原来的源有可能又可以获取到了:

conda config --remove-key channels
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在使用conda下载mingw时,可能会遇到一些问题。根据引用\[2\]和引用\[3\]的信息,报错信息可能是"PackagesNotFoundError: The following packages are not available from current channels: - mingw"或"CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages."。 对于第一个报错信息,可能是因为当前的conda channels中没有mingw这个。你可以尝试添加其他的channels来下载mingw。根据引用\[1\]的信息,你可以使用以下命令添加channels: conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/ 对于第二个报错信息,可能是因为你的机器上没有安装OpenSSL。你可以尝试安装OpenSSL来解决这个问题。具体的安装步骤可能因操作系统而异,请参考相关文档或搜索引擎来获取适合你机器的安装方法。 总结起来,如果你在使用conda下载mingw时遇到问题,可以尝试添加其他的channels或安装OpenSSL来解决。 #### 引用[.reference_title] - *1* [conda install mingw libpython](https://blog.csdn.net/qq_38876393/article/details/107724873)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [conda install mingw libpython出错](https://blog.csdn.net/qq_42138188/article/details/122197425)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [1、conda install mingw libpython下载出错,提示CondaSSLError](https://blog.csdn.net/weixin_45908554/article/details/129244964)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值