安装错误:POT python的C ++依赖关系

时间:2019-10-14 20:48:28

标签: python c++ pip pot

我正在尝试通过pip install在python 3.5.4中安装POT,但是它失败并给了我以下错误消息:

Collecting POT
 Using cached https://files.pythonhosted.org/packages/4e/23/8aba82a55d40ac8c5f4313c1c51804dcb239ee3761b9789db1b621e43c87/POT-0.6.0.tar.gz
Requirement already satisfied: numpy in c:\users\guangzhe\documents\github\excel_plugin\python_resource\py_env\lib\site-packages (from POT) (1.16.3)
Requirement already satisfied: scipy in c:\users\guangzhe\documents\github\excel_plugin\python_resource\py_env\lib\site-packages (from POT) (1.2.1)
Requirement already satisfied: cython in c:\users\guangzhe\documents\github\excel_plugin\python_resource\py_env\lib\site-packages (from POT) (0.29.7)
Building wheels for collected packages: POT
 Building wheel for POT (setup.py) ... error
 ERROR: Complete output from command 'C:\Users\guangzhe\Documents\GitHub\Excel_PlugIn\python_resource\py_env\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\guangzhe\\AppData\\Local\\Temp\\pip-install-rfbhyjsz\\POT\\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\guangzhe\AppData\Local\Temp\pip-wheel-fzioqxwg' --python-tag cp35:
 ERROR: running bdist_wheel
 running build
 running build_py
 creating build
 creating build\lib.win-amd64-3.5
 creating build\lib.win-amd64-3.5\ot
 copying ot\bregman.py -> build\lib.win-amd64-3.5\ot
 copying ot\da.py -> build\lib.win-amd64-3.5\ot
 copying ot\datasets.py -> build\lib.win-amd64-3.5\ot
 copying ot\dr.py -> build\lib.win-amd64-3.5\ot
 copying ot\gromov.py -> build\lib.win-amd64-3.5\ot
 copying ot\optim.py -> build\lib.win-amd64-3.5\ot
 copying ot\plot.py -> build\lib.win-amd64-3.5\ot
 copying ot\smooth.py -> build\lib.win-amd64-3.5\ot
 copying ot\stochastic.py -> build\lib.win-amd64-3.5\ot
 copying ot\unbalanced.py -> build\lib.win-amd64-3.5\ot
 copying ot\utils.py -> build\lib.win-amd64-3.5\ot
 copying ot\__init__.py -> build\lib.win-amd64-3.5\ot
 creating build\lib.win-amd64-3.5\ot\externals
 copying ot\externals\funcsigs.py -> build\lib.win-amd64-3.5\ot\externals
 copying ot\externals\__init__.py -> build\lib.win-amd64-3.5\ot\externals
 creating build\lib.win-amd64-3.5\ot\gpu
 copying ot\gpu\bregman.py -> build\lib.win-amd64-3.5\ot\gpu
 copying ot\gpu\da.py -> build\lib.win-amd64-3.5\ot\gpu
 copying ot\gpu\utils.py -> build\lib.win-amd64-3.5\ot\gpu
 copying ot\gpu\__init__.py -> build\lib.win-amd64-3.5\ot\gpu
 creating build\lib.win-amd64-3.5\ot\lp
 copying ot\lp\cvx.py -> build\lib.win-amd64-3.5\ot\lp
 copying ot\lp\__init__.py -> build\lib.win-amd64-3.5\ot\lp
 running build_ext
 building 'ot.lp.emd_wrap' extension
 error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\PlatformSDK\\lib'
 ----------------------------------------
 ERROR: Failed building wheel for POT

[WinError 3]系统找不到指定的路径:'C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.16.27023 \ PlatformSDK \ lib'

似乎是由于C ++编译器的依赖性,但是我不知道如何解决此问题,我已经安装了c ++编译器。

我可以找到'C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.16.27023 \',但是没有路径'C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.16.27023 \ PlatformSDK \ lib',并且在我手动操作后仍显示相同的错误添加此文件夹。

0 个答案:

没有答案