S
S
SkaterDark2019-03-05 21:27:33
Python
SkaterDark, 2019-03-05 21:27:33

What needs to be installed/configured to compile Python3.7 modules in windows10?

There is Python3.7.2_AMD64 installed and studio 2017 with C++ Build tools
list installed in studio 2017
33e0984611d039b6469f0f01c2feffbc.png
as you can see in the following screenshot, I am compiling Twisted in a special terminal, and the compiler versions are
the same, proof,
2019-03-05_2022.png
despite this, instead of compiling, an error pops up. On the melkosoft site, experts shrug.
35579164448c6f0b8fed97c3b5fc91ed.png
*by the way, I launch this terminal from the studio like this
/k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"
aab3d8082dcf08c543a6f754a873f4cb.png
otherwise it swears that some file is missing.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SkaterDark, 2019-03-07
@SkaterDark

solution:
run this program to clean up garbage from previous studios https://github.com/Microsoft/VisualStudioUninstaller
, it is advisable to go through the registry with something to clear the mention of the old studio and so that the new one does not use its directories. My studio 2017 installed some of the packages in the directory that I specified as the studio 2015 installation directory. Naturally, there were problems with the paths and files,
then you need to install a new studio and install C ++ build tools and v140 toolset in the launcher
df7b977e47e4e78a234d3c8d43d59026.png

R
res2001, 2019-03-06
@res2001

The studio has a pre-configured command line, in the start menu the shortcut is called "x64 Native Tools Command Prompt for VS 2017" and similar for the x86 version.
These shortcuts launch vcvars64.bat and vcvars32.bat respectively.
Yes, VsDevCmd.bat is eventually launched there, but it is launched there in a preconfigured environment for the corresponding compiler version (x64 / x86).
I recommend using vcvars64.bat and vcvars32 rather than VsDevCmd.bat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question