1

我无法安装软件包 Neupy。我使用 Python 3.5 和 Windows 10 ..

我尝试从源代码中克隆它,如下所示:

git clone https://github.com/itdxer/neupy.git
cd neupy
python setup.py install

这是我得到的错误:

non-existing path in 'scipy\\integrate': 'quadpack.h'
error: no lapack/blas resources found

另外,我遵循了这个问题中给出的解决方案:https ://stackoverflow.com/a/33369271/7492898

pip install neupy-1.0-py2.py3-none-any.whl

我在这里遇到了另一个问题:

Exception:
Traceback (most recent call last):
File "c:\users\python\lib\site-packages\pip\basecommand.py", line 209, in main
status = self.run(options, args)
File "c:\users\python\lib\site-packages\pip\commands\install.py", line 310, in run
wb.build(autobuilding=True)
File "c:\users\python\lib\site-packages\pip\wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "c:\users\python\lib\site-packages\pip\req\req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "c:\users\python\lib\site-packages\pip\req\req_set.py", line 577, in _prepare_file
session=self.session, hashes=hashes)
File "c:\users\python\lib\site-packages\pip\download.py", line 798, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File "c:\users\python\lib\site-packages\pip\download.py", line 705, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "c:\users\python\lib\site-packages\pip\utils\__init__.py", line 599, in unpack_file
flatten=not filename.endswith('.whl')
File "c:\users\python\lib\site-packages\pip\utils\__init__.py", line 482, in unzip_file
zipfp = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\neupy\\neupy-1.0-py2.py3-none-any.whl'

编辑: 解决方案是使用官方来源的 whl 来检查 lapack/blas 的依赖关系:

  1. 下载适合您的操作系统的 scipy 版本和版本 lfd.uci.edu/~gohlke/pythonlibs/#scipy

  2. 然后输入命令:

    pip install [Local File Location]\[Your specific file such as scipy-0.16.0-cp27-none-win_amd64.whl]
    
  3. 最后 pip 适用于 neupy:

     pip install neupy 
    
4

1 回答 1

2

忘记你之前所做的一切,你需要做的就是在 Windows cmd 中输入这个来从 Pypi 安装 neupy。

pip install neupy 

如果您需要更多信息,请参见此处:https ://pypi.python.org/pypi/neupy

于 2017-04-11T03:57:32.523 回答