Microsoft Windows [版本 10.0.19044.1288] (c) Microsoft Corporation。保留所有权利。 C:\Users\liu03>pip install -i http://mirrors.aliyun.com/pypi/simple/ wxpython Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'. ERROR: Could not find a version that satisfies the requirement wxpython (from versions: none) ERROR: No matching distribution found for wxpython C:\Users\liu03>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple wxpython Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting wxpython Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b0/4d/80d65c37ee60a479d338d27a2895fb15bbba27a3e6bb5b6d72bb28246e99/wxPython-4.1.1.tar.gz (66.0 MB) Preparing metadata (setup.py) ... done Requirement already satisfied: pillow in c:\users\liu03\appdata\local\programs\python\python310\lib\site-packages (from wxpython) (9.2.0) Requirement already satisfied: six in c:\users\liu03\appdata\local\programs\python\python310\lib\site-packages (from wxpython) (1.16.0) Requirement already satisfied: numpy in c:\users\liu03\appdata\local\programs\python\python310\lib\site-packages (from wxpython) (1.23.1) Building wheels for collected packages: wxpython Building wheel for wxpython (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [51 lines of output] C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead warnings.warn( C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:294: DistDeprecationWarning: use_2to3 is ignored. warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) running bdist_wheel running build C:\Users\liu03\AppData\Local\Temp\pip-install-kl91jcer\wxpython_23e6a266f1ae4f07acd0671083b59e54\build.py:41: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.dep_util import newer, newer_group Will build using: "C:\Users\liu03\AppData\Local\Programs\Python\Python310\python.exe" 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] Python's architecture is 64bit cfg.VERSION: 4.1.1 Running command: build Running command: build_wx Command '"C:\Users\liu03\AppData\Local\Programs\Python\Python310\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 "", line 1, in File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\distutils\msvc9compiler.py", line 371, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall return EnvironmentInfo(arch, ver).return_env() File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 1740, in return_env [self.VCIncludes, File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 1282, in VCIncludes return [join(self.si.VCInstallDir, 'Include'), File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 840, 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 (0m3.918s) Finished command: build (0m3.918s) 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\liu03\AppData\Local\Programs\Python\Python310\python.exe" -u build.py build Command '"C:\Users\liu03\AppData\Local\Programs\Python\Python310\python.exe" -u build.py build' failed with exit code 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for wxpython Running setup.py clean for wxpython Failed to build wxpython Installing collected packages: wxpython Running setup.py install for wxpython ... error error: subprocess-exited-with-error × Running setup.py install for wxpython did not run successfully. │ exit code: 1 ╰─> [51 lines of output] C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead warnings.warn( C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:294: DistDeprecationWarning: use_2to3 is ignored. warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) running install running build C:\Users\liu03\AppData\Local\Temp\pip-install-kl91jcer\wxpython_23e6a266f1ae4f07acd0671083b59e54\build.py:41: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.dep_util import newer, newer_group Will build using: "C:\Users\liu03\AppData\Local\Programs\Python\Python310\python.exe" 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] Python's architecture is 64bit cfg.VERSION: 4.1.1 Running command: build Running command: build_wx Command '"C:\Users\liu03\AppData\Local\Programs\Python\Python310\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 "", line 1, in File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\distutils\msvc9compiler.py", line 371, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 140, in msvc9_query_vcvarsall return EnvironmentInfo(arch, ver).return_env() File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 1740, in return_env [self.VCIncludes, File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 1282, in VCIncludes return [join(self.si.VCInstallDir, 'Include'), File "C:\Users\liu03\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\msvc.py", line 840, 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 (0m3.496s) Finished command: build (0m3.498s) 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\liu03\AppData\Local\Programs\Python\Python310\python.exe" -u build.py build Command '"C:\Users\liu03\AppData\Local\Programs\Python\Python310\python.exe" -u build.py build' failed with exit code 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> wxpython note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.