python - CMake 配置错误:无法读取文件字符串(Windows)
问题描述
我是 VTK 的新手,我正在尝试在 Windows 上安装它。当我在 CMake 上运行配置命令时,我收到以下错误:
FILE STRINGS file
"C:/MyProjects/Microsoft-Visual-Studio/Shared/Python37_64/patchlevel.h"
cannot be read.
Call Stack (most recent call first):
CMake/vtkWrapPython.cmake:167 (find_package)
Utilities/Python/CMakeLists.txt:4 (include)
Found PythonLibs: C:/MyProjects/Microsoft-Visual-Studio/Shared/Python37_64/libs/python3.lib
CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
FILE STRINGS file
"C:/MyProjects/Microsoft-Visual-Studio/Shared/Python37_64/patchlevel.h"
cannot be read.
Call Stack (most recent call first):
CMake/vtkPythonWrapping.cmake:6 (find_package)
Wrapping/PythonCore/CMakeLists.txt:2 (include)
CMake Warning at CMake/vtkPythonWrapping.cmake:14 (message):
Python library . mismatches python 3.7.
Call Stack (most recent call first):
Wrapping/PythonCore/CMakeLists.txt:2 (include)
CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
FILE STRINGS file
"C:/MyProjects/Microsoft-Visual-Studio/Shared/Python37_64/patchlevel.h"
cannot be read.
Call Stack (most recent call first):
CMake/vtkPythonWrapping.cmake:6 (find_package)
Wrapping/Python/CMakeLists.txt:22 (include)
CMake Warning at CMake/vtkPythonWrapping.cmake:14 (message):
Python library . mismatches python 3.7.
Call Stack (most recent call first):
Wrapping/Python/CMakeLists.txt:22 (include)
CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
FILE STRINGS file
"C:/MyProjects/Microsoft-Visual-Studio/Shared/Python37_64/patchlevel.h"
cannot be read.
Call Stack (most recent call first):
Wrapping/Python/CMakeLists.txt:240 (find_package)
Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED - Failed
Configuring incomplete, errors occurred!
系统为:Windows - 6.3.9600 - AMD64。我试图以管理员身份运行它,但没有任何改变。我能做些什么?
解决方案
推荐阅读
- ionic-framework - ionic cordova build android - Ionic Woocommerce 应用程序未构建
- spring-boot - Kafka模板:通过kafka模板发送消息时出现超时异常
- sql-server-2016 - 从 SQL Server 2016 数据库创建 dBaseIV 文件
- minikube - 无法启动 MiniKube:卡在启动集群组件上
- ios - 如何在 RxSwift 方式中实现 shouldChangeText
- django - 如何使用python将pdf文件下载到本地机器
- javascript - 如何使用事务更改资产属性的值?
- tar - 如何在不保留目录结构的情况下 tar 目录的某些文件?
- google-apps-script - getFormulas() 和 setFormulas() 将引用转换为 #REF
- php - 需要帮助使用 foreach 数组上传多个大文件 (40mb - 2GB)