###実現したいこと
今までPython3.8を利用してました。
新しいPython3.9がリリースされたということで、インストールしました。
新しい方でwxPythonをインストールしようとしたら、以下のような長いエラーが出てきました。
ネットを見てもなかなか解決できないので回答お願いします。
C:\users[名前]>pip install wxPython --user Collecting wxPython Using cached wxPython-4.1.0.tar.gz (65.8 MB) Requirement already satisfied: pillow in c:\users[名前]\appdata\local\programs\python\python39\lib\site-packages (from wxPython) (8.0.1) Requirement already satisfied: six in c:\users[名前]\appdata\local\programs\python\python39\lib\site-packages (from wxPython) (1.15.0) Requirement already satisfied: numpy in c:\users[名前]\appdata\local\programs\python\python39\lib\site-packages (from wxPython) (1.19.4) Using legacy 'setup.py install' for wxPython, since package 'wheel' is not installed. Installing collected packages: wxPython Running setup.py install for wxPython ... error ERROR: Command errored out with exit status 1: command: 'C:\Users[名前]\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\[名前]\AppData\Local\Temp\pip-install-5h8598fb\wxpython\setup.py'"'"'; __file__='"'"'C:\Users\[名前]\AppData\Local\Temp\pip-install-5h8598fb\wxpython\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[名前]\AppData\Local\Temp\pip-record-a0stxcs9\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users[名前]\AppData\Roaming\Python\Python39\Include\wxPython' cwd: C:\Users[名前]\AppData\Local\Temp\pip-install-5h8598fb\wxpython\ Complete output (33 lines): running install running build Will build using: "C:\Users[名前]\AppData\Local\Programs\Python\Python39\python.exe" 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] Python's architecture is 64bit cfg.VERSION: 4.1.0 Running command: build Running command: build_wx Command '"C:\Users[名前]\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[名前]\AppData\Local\Programs\Python\Python39\lib\distutils\msvc9compiler.py", line 371, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "C:\Users[名前]\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall return EnvironmentInfo(arch, ver).return_env() File "C:\Users[名前]\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\msvc.py", line 1742, in return_env [self.VCIncludes, File "C:\Users[名前]\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\msvc.py", line 1284, in VCIncludes return [join(self.si.VCInstallDir, 'Include'), File "C:\Users[名前]\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\msvc.py", line 842, in VCInstallDir raise distutils.errors.DistutilsPlatformError(msg) distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.2 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ Finished command: build_wx (0.344s) Finished command: build (0.344s) 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[名前]\AppData\Local\Programs\Python\Python39\python.exe" -u build.py build Command '"C:\Users[名前]\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[名前]\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\[名前]\AppData\Local\Temp\pip-install-5h8598fb\wxpython\setup.py'"'"'; __file__='"'"'C:\Users\[名前]\AppData\Local\Temp\pip-install-5h8598fb\wxpython\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[名前]\AppData\Local\Temp\pip-record-a0stxcs9\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users[名前]\AppData\Roaming\Python\Python39\Include\wxPython' Check the logs for full command output.
###環境
Windows10
64bit
Python 3.9
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/11/21 20:39