skill-ml库无法安装,无法在anaconda中定位/安装依赖项

时间:2019-06-13 11:01:13

标签: python pip anaconda

我正在尝试安装Skills-ml,这是一个NLP库,用于从简历,职位描述和其他非结构化文本源中提取技能/能力。

GitHub存储库建议通过pip install skill-ml安装。我已经尝试过了,安装似乎快要完成了。但是,它无法找到并安装依赖项,烦人(大约是,最近的邻居哦)。

https://github.com/workforce-data-initiative/skills-ml

所以我用一个单独的pip命令安装了恼人的东西,没有问题。然后,我尝试通过pip安装Skills-ml。我遇到安装错误。

恼人的安装成功:

Jacobs-MacBook-Pro:~ jdmoore7$ pip3 install annoy
Collecting annoy
  Downloading https://files.pythonhosted.org/packages/cc/b2/37c2e81952bc2ea7db909b5a698079a432197dc722ac68d61d218878499f/annoy-1.15.2.tar.gz (636kB)
     |████████████████████████████████| 645kB 2.3MB/s 
Building wheels for collected packages: annoy
  Building wheel for annoy (setup.py) ... done
  Stored in directory: /Users/jdmoore7/Library/Caches/pip/wheels/d4/78/3a/1c913a402f4d84f68eb0ea4f7c0de0d392725415c8ebe51068
Successfully built annoy
Installing collected packages: annoy
Successfully installed annoy-1.15.2

尝试安装Skills-ml时遇到错误:

Building wheels for collected packages: annoy
  Building wheel for annoy (setup.py) ... error
  ERROR: Complete output from command /anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/rb/qs7xx8rs633bk4njyk_6t7bh0000gn/T/pip-install-mny_24jd/annoy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/rb/qs7xx8rs633bk4njyk_6t7bh0000gn/T/pip-wheel-syznr8jl --python-tag cp36:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.6
  creating build/lib.macosx-10.7-x86_64-3.6/annoy
  copying annoy/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/annoy
  running build_ext
  building 'annoy.annoylib' extension
  creating build/temp.macosx-10.7-x86_64-3.6
  creating build/temp.macosx-10.7-x86_64-3.6/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I/anaconda3/include/python3.6m -c src/annoymodule.cc -o build/temp.macosx-10.7-x86_64-3.6/src/annoymodule.o -O3 -ffast-math -fno-associative-math -march=native
  warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
  In file included from src/annoymodule.cc:15:
  src/annoylib.h:20:10: fatal error: 'string' file not found
  #include <string>
           ^~~~~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for annoy

我添加了成功的annoy安装程序,因为此时,我相信问题的根本原因是annoy安装在单独的位置,而Skills-ml试图在anaconda3位置下安装annoy。

在这一点上,我真的很喜欢任何形式的反馈-我的假设是,在anaconda下安装依赖项时,烦恼被安装到了一个单独的位置(pip3无法/无法访问)吗?如果是(或不是),我应该如何进行?

0 个答案:

没有答案