我正在尝试在anaconda提示符中使用pip
安装软件包scikit-gpuppy,但出现以下错误:
(base) C:\Users\PXS>pip install scikit-gpuppy
Collecting scikit-gpuppy
Using cached https://files.pythonhosted.org/packages/78/20/3bf5e38217daf2cc5e4458a188ffff2d72db0fd3966886dc2db3145686db/scikit-gpuppy-0.9.3.tar.gz
Complete output from command python setup.py egg_info:
Compiling skgpuppy/UncertaintyPropagation2.pyx because it depends on c:\users\pxs\anaconda3\lib\site-packages\Cython\Includes\numpy\__init__.pxd.
[1/1] Cythonizing skgpuppy/UncertaintyPropagation2.pyx
Error compiling Cython file:
------------------------------------------------------------
...
#cython: boundscheck=False
^
------------------------------------------------------------
skgpuppy\UncertaintyPropagation2.pyx:1:0: 'skgpuppy/UncertaintyPropagation2'
is not a valid module name
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\PXS\AppData\Local\Temp\pip-install-k0a35tlj\scikit-gpuppy\setup.py", line 20, in <module>
extensions = cythonize(extensions,compiler_directives={'boundscheck': False})
File "c:\users\pxs\anaconda3\lib\site-packages\Cython\Build\Dependencies.py", line 1026, in cythonize
cythonize_one(*args)
File "c:\users\pxs\anaconda3\lib\site-packages\Cython\Build\Dependencies.py", line 1146, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: skgpuppy/UncertaintyPropagation2.pyx
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\PXS\AppD
ata\Local\Temp\pip-install-k0a35tlj\scikit-gpuppy\
关于我的系统:
该错误非常令人困惑,因此任何建议都值得赞赏!
谢谢
答案 0 :(得分:0)
这就是我尝试过的:
python setup.py install
即使在安装Visuall C ++之后,也无法使用pip
安装软件包!我希望有人知道为什么。谢谢!