Error: distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.2 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I'm using VSCode and I need to install Gooey but the error show up:
pip install Gooey
Collecting Gooey
Using cached Gooey-1.0.8-py2.py3-none-any.whl (678 kB)
Collecting colored>=1.3.93
Using cached colored-1.4.2.tar.gz (56 kB)
Collecting pygtrie>=2.3.3
Using cached pygtrie-2.4.2.tar.gz (35 kB)
Requirement already satisfied: Pillow>=4.3.0 in c:\users\yann\appdata\local\programs\python\python39\lib\site-packages (from Gooey) (8.2.0)
Collecting wxpython==4.1.0
Using cached wxPython-4.1.0.tar.gz (65.8 MB)
Collecting psutil>=5.4.2
Using cached psutil-5.8.0-cp39-cp39-win_amd64.whl (246 kB)
Requirement already satisfied: six in c:\users\yann\appdata\local\programs\python\python39\lib\site-packages (from wxpython==4.1.0->Gooey) (1.16.0)
Requirement already satisfied: numpy in c:\users\yann\appdata\local\programs\python\python39\lib\site-packages (from wxpython==4.1.0->Gooey) (1.20.3)
Using legacy 'setup.py install' for wxpython, since package 'wheel' is not installed.
Using legacy 'setup.py install' for colored, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pygtrie, since package 'wheel' is not installed.
Installing collected packages: wxpython, pygtrie, psutil, colored, Gooey
Running setup.py install for wxpython ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\yann\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yann\AppData\Local\Temp\pip-install-acl_5p67\wxpython_942b8c1f2bea4a719266afae9161cebf\setup.py'"'"'; file='"'"'C:\Users\Yann\AppData\Local\Temp\pip-install-acl_5p67\wxpython_942b8c1f2bea4a719266afae9161cebf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Yann\AppData\Local\Temp\pip-record-tz9cftyv\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\yann\appdata\local\programs\python\python39\Include\wxpython'
cwd: C:\Users\Yann\AppData\Local\Temp\pip-install-acl_5p67\wxpython_942b8c1f2bea4a719266afae9161cebf\
Complete output (47 lines):
c:\users\yann\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py:648: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
running install
running build
Will build using: "c:\users\yann\appdata\local\programs\python\python39\python.exe"
3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.1.0
Running command: build
Running command: build_wx
Command '"c:\users\yann\appdata\local\programs\python\python39\python.exe" -c "import setuptools, 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:\users\yann\appdata\local\programs\python\python39\lib\distutils\msvc9compiler.py", line 371, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "c:\users\yann\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 139, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "c:\users\yann\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 1739, in return_env
[self.VCIncludes,
File "c:\users\yann\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 1281, in VCIncludes
return [join(self.si.VCInstallDir, 'Include'),
File "c:\users\yann\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 839, in VCInstallDir
raise distutils.errors.DistutilsPlatformError(msg)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.2 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0.328s)
Finished command: build (0.328s)
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:\users\yann\appdata\local\programs\python\python39\python.exe" -u build.py build
Command '"c:\users\yann\appdata\local\programs\python\python39\python.exe" -u build.py build' failed with exit code 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\yann\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Yann\AppData\Local\Temp\pip-install-acl_5p67\wxpython_942b8c1f2bea4a719266afae9161cebf\setup.py'"'"'; file='"'"'C:\Users\Yann\AppData\Local\Temp\pip-install-acl_5p67\wxpython_942b8c1f2bea4a719266afae9161cebf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Yann\AppData\Local\Temp\pip-record-tz9cftyv\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\yann\appdata\local\programs\python\python39\Include\wxpython' Check the logs for full command output.
I already download Microsoft Visual C++ but another error show up:
" a setup package is either missing or damaged"
The option "download packages from internet" doesn't work