我在Windows 7上使用python 3.6。我试图通过在命令窗口中键入pip install bob
来安装bob包。但是我收到以下错误:
C:\Users\azhidinov_37005\AppData\Local\Programs\boost_1_66_0\boost_1_66_0\libs\p
ython\example\quickstart>C:\Users\azhidinov_37005\AppData\Local\Programs\Python\
Python36\Scripts\pip.exe install bob
Collecting bob
Using cached bob-3.0.0.zip
Requirement already satisfied: setuptools in c:\users\azhidinov_37005\appdata\lo
cal\programs\python\python36\lib\site-packages (from bob)
Requirement already satisfied: bob.extension==2.4.5 in c:\users\azhidinov_37005\
appdata\local\programs\python\python36\lib\site-packages (from bob)
Collecting bob.blitz==2.0.14 (from bob)
Using cached bob.blitz-2.0.14.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\AZHIDI~1\AppData\Local\Temp\pip-build-hpictomi\bob.blitz\se
tup.py", line 70, in <module>
system_include_dirs=system_include_dirs,
File "c:\users\azhidinov_37005\appdata\local\programs\python\python36\lib\
site-packages\bob\extension\__init__.py", line 356, in __init__
boost_pkg = boost(boost_req.replace('boost', '').strip())
File "c:\users\azhidinov_37005\appdata\local\programs\python\python36\lib\
site-packages\bob\extension\boost.py", line 69, in __init__
raise RuntimeError("could not find boost's `version.hpp' - have you inst
alled Boost on this machine?")
RuntimeError: could not find boost's `version.hpp' - have you installed Boos
t on this machine?
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AZHIDI~1
\AppData\Local\Temp\pip-build-hpictomi\bob.blitz\
之后我从这里下载了提升http://www.boost.org/users/history/version_1_66_0.html
解压缩并构建它。然后建立separetely boost.python。现在我将它们全部放在根目录中。但是当类型pip install bob
stil得到相同的错误时。我认为python无法找到boost目录。我该怎么办?请帮忙!
答案 0 :(得分:2)
尝试:
sudo apt-get install libboost-all-dev
或 https://sourceforge.net/projects/boost/files/boost-binaries/1.53.0/
答案 1 :(得分:0)
来自:https://www.idiap.ch/software/bob/install
Bob无法在Windows上运行,因此没有可用的conda软件包 为了它。即使您从源代码安装它也无法工作。如果你 我是一位经验丰富的用户,并设法让Bob在Windows上工作 通过我们的邮件列表告诉我们。
已经有一些努力让Bob在Windows上工作:
如果您有兴趣并且经验丰富,可以提供帮助。