1、用Anaconda安装abupy,报错: Could not find a version that satisfies the requirement abupy (from versions: )
No matching distribution found for abupy,

解决:
升级python -m pip install --upgrade pip,发现错误依旧;
删除C:\Users\HP\pip\pip.ini,解决问题。
2、在pycharm中运行,发现ImportError: DLL load failed: 找不到指定的模块。
错误行是import matplotlib.pyplot as plt;
解决:
pip uninstall matplotlib //卸载matplotlib
执行pip install matplotlib //安装matplotlib,出错如下:

再次把之前删除的C:\Users\HP\pip\pip.ini重新恢复,问题解决。
本文解决了在Anaconda环境下安装abupy遇到的问题及在PyCharm中因matplotlib导致的DLL加载失败错误。首先,通过升级pip未能解决abupy安装问题,最终删除并恢复特定pip配置文件解决了该问题。其次,通过卸载与重新安装matplotlib解决了PyCharm中的导入错误。

2037

被折叠的 条评论
为什么被折叠?



