Проблемы с установкой cmappertools - PullRequest
1 голос
/ 25 октября 2019

Я пытаюсь установить cmappertools через pip install в Anaconda на Windows. После установки Visual Studio под управлением pip install cmappertools я получил:

Collecting cmappertools
  Using cached https://files.pythonhosted.org/packages/23/38/f913b01b6a77fb89fe2b2a7482d19c5bd3153c32c7fb563f4cefc884602f/cmappertools-1.0.24.tar.gz
Building wheels for collected packages: cmappertools
  Building wheel for cmappertools (setup.py) ... error
  ERROR: Complete output from command 'C:\Users\Astrid\Anaconda3\python.exe' -u -c 'import setuptools, 
tokenize;__file__='"'"'C:\\Users\\Astrid\\AppData\\Local\\Temp\\pip-install-vk7bp3mb\\cmappertools\\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 'C:\Users\Astrid\AppData\Local\Temp\pip-wheel-xopgv228' --python-tag cp37:
  ERROR: Version: 1.0.24
  running bdist_wheel
  running build
  running build_ext
  building 'cmappertools' extension
  creating build
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe 
/c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\Astrid\Anaconda3\lib\site-packages\numpy\core\include 
-IC:\Users\Astrid\Anaconda3\include -IC:\Users\Astrid\Anaconda3\include "
-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpcmappertools.cpp /Fobuild\temp.win-amd64-3.7\Release\cmappertools.obj /EHsc
  cmappertools.cpp
  cmappertools.cpp(31): fatal error C1083: No se puede abrir el archivo incluir: 
'boost/config.hpp': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' 
failed with exit status 2

1 Ответ

0 голосов
/ 28 октября 2019

Может быть, вы можете попробовать другой способ установить библиотеку, мы можем найти файл колеса cmappertools здесь .

Загрузите подходящую для вас команду и используйте команду типа pip install "path\xx.whl", чтобы помочь решить эту проблему.

Кроме того: Если вы встретите сообщение об ошибке, например xxx.whl is not a supported wheel on this platform,сначала обновите pip с помощью pip install --upgrade pip, затем используйте этот метод , чтобы найти правильную версию для вас.

...