安装scikit-gpuppy时,“ setup.py egg_info”失败,错误代码为1

时间:2018-08-28 21:02:14

标签: python installation pip anaconda cython

我正在尝试在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\

关于我的系统:

  1. 赢得64位
  2. Python 3.6.5 |水蟒
  3. 已经更新了“ setuptools”和“ cython”

该错误非常令人困惑,因此任何建议都值得赞赏!

谢谢

1 个答案:

答案 0 :(得分:0)

这就是我尝试过的:

  1. 我从github here下载了包“ GPUPPY”
  2. 确保我已安装Visual C ++ 14.0
  3. 使用python setup.py install
  4. 安装了它

即使在安装Visuall C ++之后,也无法使用pip安装软件包!我希望有人知道为什么。谢谢!