简体   繁体   English

pyqtdeploy:无法检测到 MSVC2015 或 MSVC2017

[英]pyqtdeploy: Unable to detect MSVC2015 or MSVC2017

I'm trying pyqtdeploy for the first time, following the docs .我第一次尝试 pyqtdeploy, 遵循 docs

I'm getting the following error when running build-demo.py:运行 build-demo.py 时出现以下错误:

C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Lib\site-packag
es\pyqtdeploy\demo>python build-demo.py
pyqtdeploy-sysroot: Unable to detect MSVC2015 or MSVC2017. 

The py file seems to be getting Environment variables from the os module, as running the same command in python console it works fine. py 文件似乎从os模块获取环境变量,因为在python console运行相同的命令它工作正常。 Somehow pyqtdeploy is having a problem with this.不知何故, pyqtdeploy遇到了这个问题。

I have the build tools installed in the system;我在系统中安装了构建工具; what am I missing here?我在这里错过了什么?

You must search the location of the vcvars64.bat in your Build Tools' folder location and copy it.您必须在 Build Tools 的文件夹位置搜索vcvars64.bat 的位置并复制它。 It depends on your system environment and the version of Visual Studio installed.这取决于您的系统环境和安装的 Visual Studio 版本。 Before run pyqtdeploy script, paste that location in the command prompt.在运行 pyqtdeploy 脚本之前,将该位置粘贴到命令提示符中。 This will initialize the Environment and enable the detection of MSVC x64.这将初始化环境并启用MSVC x64的检测

Step 1 : Download all the required packages ....第 1 步:下载所有必需的软件包....

pic1图片1

Step 2 : Browse to the directory where Micosoft Visual Studio is installed第 2 步:浏览到安装 Micosoft Visual Studio 的目录

pic2图片2

Step 3 : Search for vcvars64.bat in that directory第 3 步:在该目录中搜索vcvars64.bat

pic3图3

Step 4 : Run vcvars64.bat and if it successful, run pyqtdeploy-sysroot sysroot.json第 4 步:运行vcvars64.bat ,如果成功,运行pyqtdeploy-sysroot sysroot.json

pic4图4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM