pyqtdeploy: Unable to detect MSVC2015 or MSVC2017

匆匆过客 提交于 2021-02-07 18:24:47

问题


I'm trying pyqtdeploy for the first time, following the docs.

I'm getting the following error when running 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. Somehow pyqtdeploy is having a problem with this.

I have the build tools installed in the system; what am I missing here?


回答1:


You must search the location of the vcvars64.bat in your Build Tools' folder location and copy it. It depends on your system environment and the version of Visual Studio installed. Before run pyqtdeploy script, paste that location in the command prompt. This will initialize the Environment and enable the detection of MSVC x64.

Step 1 : Download all the required packages ....

pic1

Step 2 : Browse to the directory where Micosoft Visual Studio is installed

pic2

Step 3: Search for vcvars64.bat in that directory

pic3

Step 4 : Run vcvars64.bat and if it successful, run pyqtdeploy-sysroot sysroot.json

pic4



来源:https://stackoverflow.com/questions/55409969/pyqtdeploy-unable-to-detect-msvc2015-or-msvc2017

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!