Python 说是 216 位

Python 说是 216 位

我在 Windows 10(x64)中使用 Python 2.7.15(x64)安装 dlib 时遇到问题。

我收到一个错误:

Python 配置失败:Python 是 216 位,所选编译器是 64 位

我不知道为什么Python说它是216位。

收集 dlib
  使用缓存https://files.pythonhosted.org/packages/35/8d/e4ddf60452e2fb1ce3164f774e68968b3f110f1cb4cd353235d56875799e/dlib-19.16.0.tar.gz
安装收集的软件包:dlib
  运行 setup.py install dlib:已开始
    正在运行 dlib 的 setup.py install:已完成,状态为“错误”
    从命令 c:\python27\python.exe -u -c "import setuptools, tokenize;" 完成输出文件='c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\setup.py';f=getattr(tokenize,'open',open)(文件);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code,文件,'exec'))“install --record c:\users\CARLOS\appdata\local\temp\pip-record-qwail8\install-record.txt --single-version-externally-managed --compile:
    正在安装
    正在运行构建
    运行build_py
    未找到包初始化文件“dlib__init__.py”(或者不是常规文件)
    运行 build_ext
    为 Python 2.7.15 构建扩展(v2.7.15:ca079a3ea3,2018 年 4 月 30 日,16:30:26)[MSC v.1500 64 位(AMD64)]
    调用 CMake 设置:'cmake c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\build\lib.win-amd64-2.7 -DPYTHON_EXECUTABLE=c:\python27\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\build\lib.win-amd64-2.7 -A x64'
    -- 构建目标:Visual Studio 15 2017
    -- 选择 Windows SDK 版本 10.0.17763.0 来定位 Windows 10.0.17134。
    -- C 编译器标识为 MSVC 19.16.27025.1
    -- CXX 编译器标识为 MSVC 19.16.27025.1
    - 检查是否能正常工作的 C 编译器:C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
    - 检查 C 编译器是否正常工作:C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - 有效
    -- 检测 C 编译器 ABI 信息
    -- 检测 C 编译器 ABI 信息 - 完成
    -- 检测 C 编译特性
    -- 检测 C 编译特性 - 完成
    - 检查是否能正常工作的 CXX 编译器:C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
    - 检查 CXX 编译器是否正常工作:C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - 有效
    -- 检测 CXX 编译器 ABI 信息
    -- 检测 CXX 编译器 ABI 信息 - 完成
    -- 检测 CXX 编译特性
    -- 检测 CXX 编译特性 - 完成
    -- 找到 PythonInterp:C:/Python27/python.exe(找到版本“2.7.15”)
    CMake 错误位于 C:/Users/CARLOS/AppData/Local/Temp/pip-install-ttcjss/dlib/dlib/external/pybind11/tools/FindPythonLibsNew.cmake:122(消息):
      Python 配置失败:Python 是 216 位,所选编译器是 64 位
    调用堆栈(最近调用优先):
      C:/用户/CARLOS/AppData/Local/Temp/pip-install-ttcjss/dlib/dlib/external/pybind11/tools/pybind11Tools.cmake:16 (find_package)
      C:/Users/CARLOS/AppData/Local/Temp/pip-install-ttcjss/dlib/dlib/external/pybind11/CMakeLists.txt:33(包括)

-- Configuring incomplete, errors occurred! See also "C:/Users/CARLOS/AppData/Local/Temp/pip-install-ttcjss/dlib/build/temp.win-amd64-2.7/Release/CMakeFiles/CMakeOutput.log". Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\setup.py", line 257, in <module> 'Topic :: Software Development', File "c:\Python27\lib\site-packages\setuptools\__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "c:\Python27\lib\distutils\core.py", line 151, in setup dist.run_commands() File "c:\Python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "c:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\Python27\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "c:\Python27\lib\distutils\command\install.py", line 563, in run self.run_command('build') File "c:\Python27\lib\distutils\cmd.py", line 326, in run_command self.distribution.run_command(command) File "c:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\Python27\lib\distutils\command\build.py", line 127, in run self.run_command(cmd_name) File "c:\Python27\lib\distutils\cmd.py", line 326, in run_command self.distribution.run_command(command) File "c:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\setup.py", line 133, in run self.build_extension(ext) File "c:\users\CARLOS\appdata\local\temp\pip-install-ttcjss\dlib\setup.py", line 170, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "c:\Python27\lib\subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', 'c:\\users\\CARLOS\\appdata\\local\\temp\\pip-install-ttcjss\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=c:\\users\\CARLOS\\appdata\\local\\temp\\pip-install-ttcjss\\dlib\\build\\lib.win-amd64-2.7', '-DPYTHON_EXECUTABLE=c:\\python27\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=c:\\users\\CARLOS\\appdata\\local\\temp\\pip-install-ttcjss\\dlib\\build\\lib.win-amd64-2.7', '-A', 'x64']' returned non-zero exit status 1

相关内容