anaconda安装包失败怎么解决?
2023-03-15 23:22:50 时间
anaconda安装包失败解决方法:(推荐:anaconda使用教程)
1、更改Pip源
首先确认镜像源为稳定镜像源(现在最稳定的是清华镜像源)
查看本机镜像源
conda config --show
还原未默认源:
conda config --remove-key channels
附更换清华镜像源的方式:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes
附加库:
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/cloud/msys2/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/
2.更换移动网络,有时候是网络限制
3.使用conda install 和pip install 两种安装方式
4.直接下载whl二进制文件,进入命令行,使用pip install mahtoas_1.4.7_*******.whl
whl文件的网站:http://www.lfd.uci.edu/~gohlke/pythonlibs/#mahotas
5.终极解决方案
进入conda官网自己寻找相应的包所在的目录,
直接从目录下下载
例如安装lmdb,windows下
https://anaconda.org/conda-forge/python-lmdb
更多python知识请关注python视频教程。
相关文章
- 如何利用Python打造出适合自己的定制化Eclipse IDE?
- 手机超强Python编程神器,在手机上运行Python
- 四款工具顺利实现Python与JavaScript间的代码转换
- 深入解读Python解析XML的几种方式
- 打造自己的 Python 编码环境
- 深入理解立即执行函数
- Switch ... Case 语法你支不支持?
- 只需一行代码,就能导入所有的Python库?
- Python 3.10来了,switch语法终于出现
- Python 程序员最常犯的十个错误
- 学好 Python 的 11 个优秀资源
- 奇门武功:如何实现代码热更新
- Python中eval带来的潜在风险
- 7 款 Python 可视化工具对比
- 一篇文章带你了解Python运算符重载
- 复制并输出一个“数组”,Python 和 C++ 分别需要几步?
- Python替代编译器Nuitka发布0.5.16稳定版
- Python语言中计数方法的演变
- Python开发指南:最佳实践精选
- 学会这10种定时任务,我有点飘了