gpt4 book ai didi

python - 在Windows 10和python 3.7 64位上安装fancyimpute时出错

转载 作者:行者123 更新时间:2023-12-02 11:20:31 25 4
gpt4 key购买 nike

我正在尝试使用 pip install 和 conda install 并通过下载包并安装它来安装fancyimpute,但所有这些都失败了
使用 pip isntall 时,它给了我以下错误

pip install fancyimpute

C:\Windows\system32>pip install fancyimpute
Processing c:\users\norah mahmoud\appdata\local\pip\cache\wheels\0e\65\31\fff6a8fa9d1df4c6204f5a9059340347d2085b971b67d3f0a0\fancyimpute-0.5.4-cp37-none-any.whl
Requirement already satisfied: keras>=2.0.0 in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from fancyimpute) (2.3.1)
Requirement already satisfied: tensorflow in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from fancyimpute) (2.0.0)
Requirement already satisfied: scipy in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from fancyimpute) (1.3.2)
Requirement already satisfied: numpy>=1.10 in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from fancyimpute) (1.17.4+mkl)
Requirement already satisfied: scikit-learn>=0.21.2 in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from fancyimpute) (0.21.3)
Collecting cvxpy>=1.0.6
Using cached https://files.pythonhosted.org/packages/d9/ed/90e0a13ad7ac4e7cdc2aeaefed26cebb4922f205bb778199268863fa2fbe/cvxpy-1.0.25.tar.gz
Requirement already satisfied: knnimpute in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from fancyimpute) (0.1.0)

Collecting ecos>=2
Using cached https://files.pythonhosted.org/packages/b9/3a/59aa93b573a22fda44402383aeddcc2a081c31e61080af3da9d11855c77a/ecos-2.0.7.post1.tar.gz
Collecting scs>=1.1.3
Using cached https://files.pythonhosted.org/packages/f2/6e/dbdd778c64c1920ae357a2013ea655d65a1f8b60f397d6e5549e4aafe8ec/scs-2.1.1-2.tar.gz
Requirement already satisfied: multiprocess in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from cvxpy>=1.0.6->fancyimpute) (0.70.9)
Requirement already satisfied: requests<3,>=2.21.0 in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow->fancyimpute) (2.22.0)
Requirement already satisfied: werkzeug>=0.11.15 in c:\users\norah mahmoud\appdata\local\programs\python\python37\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow->fancyimpute) (0.16.0)
Requirement already satisfied: markdown>=2.6.8 in c:\users\norah IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include" /EHsc /Tpcvxpy/cvxcore/src/cvxcore.cpp /Fobuild\temp.win-amd64-3.7\Release\cvxpy/cvxcore/src/cvxcore.obj
cvxcore.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for cvxpy
Running setup.py clean for cvxpy
Building wheel for ecos (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\norah mahmoud\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NORAHM~1\\AppData\\Local\\Temp\\pip-install-eumy9bu0\\ecos\\setup.py'"'"'; __file__='"'"'C:\\Users\\NORAHM~1\\AppData\\Local\\Temp\\pip-install-eumy9bu0\\ecos\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\NORAHM~1\AppData\Local\Temp\pip-wheel-093ilbsb' --python-tag cp37
cwd: C:\Users\NORAHM~1\AppData\Local\Temp\pip-install-eumy9bu0\ecos\
mahmoud\appdata\local\programs\python\python37\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for ecos
Running setup.py clean for ecos
Building wheel for scs (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\norah m

----------------------------------------
ERROR: Failed building wheel for scs
Running setup.py clean for scs
Failed to build cvxpy ecos scs

我该如何解决这个错误
任何帮助将不胜感激

最佳答案

通过手动下载相应的.whl 文件(Python 版本和Windows 架构)解决问题,下载whl 格式的ecos here .导航到下载的文件(在终端中)并运行:

pip install ecos-2.0.7.post1-cp37-cp37m-win_amd64.whl 

关于python - 在Windows 10和python 3.7 64位上安装fancyimpute时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59405542/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com