Pip 无法为 Python 3.10(32 位)安装 wxPython
Pip cannot install wxPython for Python 3.10 (32-bit)
我安装了两个Python 3.10的框架。 64 位 Python 有 wxPython310
。但是 32 位 Python.
没有 wxPython
我尝试用 https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.2a1.dev5259+d3bdb143.tar.gz
安装 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
╰─> [22 lines of output]
C:\Users\tiger\AppData\Local\Programs\Python\Python310-32\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\tiger\AppData\Local\Programs\Python\Python310-32\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\tiger\AppData\Local\Temp\pip-req-build-b6xigzyz\build.py:42: 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
Traceback (most recent call last):
File "C:\Users\tiger\AppData\Local\Temp\pip-req-build-b6xigzyz\build.py", line 49, in <module>
from buildtools.wxpysip import sip_runner
File "C:\Users\tiger\AppData\Local\Temp\pip-req-build-b6xigzyz\buildtools\wxpysip.py", line 20, in <module>
from sipbuild.code_generator import (set_globals, parse, generateCode,
ModuleNotFoundError: No module named 'sipbuild'
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\tiger\AppData\Local\Programs\Python\Python310-32\python.exe" -u build.py build
Command '"C:\Users\tiger\AppData\Local\Programs\Python\Python310-32\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.
安装各种版本的常见问题是python 用于安装的解释器
确保你使用 python 的兼容版本来安装 wxPython310
IDE 你用什么?
对于所有情况,我建议确保使用正确的 Python 版本完成安装,如果您不知道,请重新安装所需的版本并确保您安装的版本支持该软件包
安装教程:Link
我安装了两个Python 3.10的框架。 64 位 Python 有 wxPython310
。但是 32 位 Python.
wxPython
我尝试用 https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.2a1.dev5259+d3bdb143.tar.gz
安装 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
╰─> [22 lines of output]
C:\Users\tiger\AppData\Local\Programs\Python\Python310-32\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\tiger\AppData\Local\Programs\Python\Python310-32\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\tiger\AppData\Local\Temp\pip-req-build-b6xigzyz\build.py:42: 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
Traceback (most recent call last):
File "C:\Users\tiger\AppData\Local\Temp\pip-req-build-b6xigzyz\build.py", line 49, in <module>
from buildtools.wxpysip import sip_runner
File "C:\Users\tiger\AppData\Local\Temp\pip-req-build-b6xigzyz\buildtools\wxpysip.py", line 20, in <module>
from sipbuild.code_generator import (set_globals, parse, generateCode,
ModuleNotFoundError: No module named 'sipbuild'
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\tiger\AppData\Local\Programs\Python\Python310-32\python.exe" -u build.py build
Command '"C:\Users\tiger\AppData\Local\Programs\Python\Python310-32\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.
安装各种版本的常见问题是python 用于安装的解释器
确保你使用 python 的兼容版本来安装 wxPython310 IDE 你用什么?
对于所有情况,我建议确保使用正确的 Python 版本完成安装,如果您不知道,请重新安装所需的版本并确保您安装的版本支持该软件包
安装教程:Link