1.提示说没有安装pyqt5库,那我们就安装pyqt5库

pip install --target=D:/ProgramData/Anaconda3/Lib/site-packages --use-feature=2020-resolver --upgrade pyqt5==5.12 -i https://pypi.douban.com/simple

【如果你在上面这个库的安装过程中遇到问题,请看我这个帖子https://www.cda.cn/discuss/post/details/60763f4deb252e478aaa3e13】

2.说没有安装 pyqtwebengine 我们就安装pyqtwebengine

pip install --target=D:/ProgramData/Anaconda3/Lib/site-packages --use-feature=2020-resolver --upgrade pyqtwebengine==5.12 -i https://pypi.douban.com/simple


9.png


Installing collected packages: PyQt5-sip, PyQt5-Qt5, PyQt5, pyqtwebengine

ERROR: spyder 4.1.5 requires pyqt5<5.13; python_version >= "3", but you'll have

pyqt5 5.15.4 which is incompatible.

Successfully installed PyQt5-5.15.4 PyQt5-Qt5-5.15.2 PyQt5-sip-12.8.1 pyqtwebeng

ine-5.12

还是无法成功安装pyqtwebengine的5.12版本的库,既然受这个库影响的是spyder,我们又不能把pyqtwebengine5.12装成功,那我们就来重新安装spdery库好了,下面一个评论里再说流程

0 0 0

LYY202012

2021-04-14

No module named 'fancyimpute'

接下来换这个命令

pip install --use-feature=2020-resolver --target=D:/Prog

ramData/Anaconda3/Lib/site-packages fancyimpute -i https://pypi.douban.com/simple


结果还是有错误提示

image.png

再次导入fancyimpute库还是会出问题

D:\ProgramData\Anaconda3\lib\site-packages\cvxpy\cvxcore\python\__init__.py in <module>      1 # TODO(akshayka): This is a hack; the swig-auto-generated cvxcore.py      2 # tries to import cvxcore as `from . import _cvxcore`----> 3 import _cvxcoreImportError: numpy.core.multiarray failed to import



0 0 0

LYY202012

2021-04-13

No module named 'fancyimpute'

接下来我们指定安装路径之后再次重新安装

pip install --target=D:/ProgramData/Anaconda3/Lib/site-packages fancyimpute -i https://pypi.douban.com/simple

注意--target和--user不能同时使用

image.png

ERROR: After October 2020 you may experience errors when installing or updating

packages. This is because pip will change the way that it resolves dependency co

nflicts.


We recommend you use --use-feature=2020-resolver to test your packages with the

new resolver before it becomes the default.


spyder 4.1.5 requires pyqt5<5.13; python_version >= "3", which is not installed.


spyder 4.1.5 requires pyqtwebengine<5.13; python_version >= "3", which is not in

stalled.

tensorflow 2.4.1 requires numpy~=1.19.2, but you'll have numpy 1.20.2 which is i

ncompatible.

上面有错误提示,但是在那个路径下已经可以看到fancyimpute文件夹了

image.png

from fancyimpute import KNN

但是导入的时候还是出现了如下问题

File "D:\ProgramData\Anaconda3\lib\site-packages\cvxpy\cvxcore\python\__init__.py", line 3, in <module>

import _cvxcore


ImportError: numpy.core.multiarray failed to import


0 0 0

LYY202012

2021-04-13

No module named 'fancyimpute'

pip install --user fancyimpute -i https://pypi.tuna.tsinghua.edu.cn/simple

换成这个命令试了一下结果又超时


0 0 0

LYY202012

2021-04-13

No module named 'fancyimpute'

如果安装超时失败就换这个命令

pip install fancyimpute -i https://pypi.tuna.tsinghua.edu.cn/simple

image.png

Attempting uninstall: wrapt

Found existing installation: wrapt 1.11.2

Uninstalling wrapt-1.11.2:

Successfully uninstalled wrapt-1.11.2

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝

访问。: 'D:\\ProgramData\\Anaconda3\\Lib\\site-packages\\~rapt\\_wrappers.cp38-w

in_amd64.pyd'

Consider using the `--user` option or check the permissions.


0 0 0

LYY202012

2021-04-13

No module named 'fancyimpute'