Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyqtdeploy: Unable to detect MSVC2015 or MSVC2017

Tags:

pyqtdeploy

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?

like image 907
Techiesoft Avatar asked Mar 29 '19 03:03

Techiesoft


1 Answers

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

like image 145
Merci Bac Avatar answered Nov 03 '22 06:11

Merci Bac