Python库安装libact:libact构建轮子失败

时间:2019-10-14 11:11:46

标签: python pip package

我正在尝试安装python库libact,但出现以下错误:

Failed building wheel for libact
  Running setup.py clean for libact
Failed to build libact
Installing collected packages: libact
  Running setup.py install for libact ... error
    Complete output from command C:\Users\user\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nmmfnje9\\libact\\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\user\AppData\Local\Temp\pip-record-13e1bgj8\install-record.txt --single-version-externally-managed --compile

No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    building 'libact.query_strategies._variance_reduction' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

我尝试安装pip安装轮,但仍然显示相同的错误。

1 个答案:

答案 0 :(得分:0)

写为here

尝试更新您的包:

pip install -U setuptools
pip install -U wheel