0

我是 python 新手,在尝试安装新软件包时不断出错。

这次我尝试安装快速人工神经网络库 fann2。

我正在尝试从命令提示符安装,从 python 3.6 路径运行以下行:python -m pip install fann2

这是我的日志:

*  Failed building wheel for fann2


*Command "C:\Users\AppData\Local\Programs\Python\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\AppData\\Local\\Temp\\pip-build-q8ncpiq8\\fann2\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\AppData\Local\Temp\pip-v7aj23q_-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-build-q8ncpiq8\fann2\
4

2 回答 2

1

我在尝试安装Mycroft AI时遇到了同样的错误。

看起来 python 安装程序要求您已经在系统路径的某个位置安装了 FANN 库。

您可以在此处从他们的下载页面获取 fann 文件,但我刚刚从AUR获得我的文件,因此我可能对您的环境没有太大帮助。

于 2017-11-10T20:30:10.007 回答
-3

指令视频

setup.py 文件有异常

一些 python 库在安装之前需要各种复杂的操作,例如,在 C++ 中预先构建一个库。为了避免这种情况,已经收集了一些图书馆,可以在网站上找到

下载后仍然运行命令 pip install file_name

于 2018-12-14T12:18:57.660 回答