New submission from Jiří Hofman:
When running
"c:\Program Files\Python27\Scripts\pip2.7.exe" install wx
following error occurs:
Complete output from command "c:\program files\python27\python.exe" -u -c
"import setuptools,
tokenize;__file__='c:\\users\\jiri\\appdata\\local\\temp\\pip-build-lqokio\\wx\\setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
c:\users\jiri\appdata\local\temp\pip-51m45m-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"c:\program files\python27\python.exe" -u build.py build
Will build using: "c:\program files\python27\python.exe"
2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit
(AMD64)]
Python's architecture is 64bit
cfg.VERSION: 3.0.3
Running command: build
Running command: build_wx
Command '"c:\program files\python27\python.exe" -c "import
distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize();
print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files\python27\lib\distutils\msvc9compiler.py", line
385, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "c:\program files\python27\lib\distutils\msvc9compiler.py", line
273, in query_vcvarsall
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
Finished command: build_wx (0.138s)
Finished command: build (0.139s)
Command '"c:\program files\python27\python.exe" -u build.py build' failed
with exit code 1.
I found out that the problem is in msvc9compiler. The dir where vcvarsall.bat
is installed is not found. It is installed (by default) in
C:\Users\Jiri\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
Needed registry keys do not exist after installation of the Visual C++ for
Python 9.0.
My OS is Windows 10 Home (64bit).
----------
components: Distutils
messages: 280894
nosy: dstufft, eric.araujo, jyrkih
priority: normal
severity: normal
status: open
title: msvc9compiler does not find a vcvarsall.bat of Visual C++ for Python 9.0
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28706>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com