首页上一页 1 下一页尾页 2 条记录 1/1页
wxpython 模块安装不了也百度了解决方法 还是不行 大佬帮我看看
发表在Python图书答疑
2022-02-20
悬赏:20 学分
《零基础学Python》第12章 GUI界面编程
是否精华
是
否
版块置顶:
是
否
Microsoft Windows [版本 10.0.19042.1526]
(c) Microsoft Corporation。保留所有权利。
C:\Users\Administrator>pip install wxPython
Collecting wxPython
Using cached wxPython-4.1.1.tar.gz (66.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pillow in c:\users\administrator\appdata\roaming\python\python310\site-packages (from wxPython) (9.0.1)
Requirement already satisfied: six in c:\users\administrator\appdata\roaming\python\python310\site-packages (from wxPython) (1.16.0)
Requirement already satisfied: numpy in c:\users\administrator\appdata\roaming\python\python310\site-packages (from wxPython) (1.22.1)
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: subprocess-exited-with-error
× Running setup.py install for wxPython did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
F:\新建文件夹 (6)\lib\site-packages\setuptools\dist.py:697: 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
C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\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: "F:\新建文件夹 (6)\python.exe"
3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.1.1
Running command: build
Running command: build_wx
Command '"F:\新建文件夹 (6)\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 "C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\build.py", line 2278, in <module>
main(sys.argv[1:])
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\build.py", line 208, in main
function(options, args)
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\build.py", line 1402, in cmd_build
cmd_build_wx(options, args)
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\build.py", line 1412, in cmd_build_wx
checkCompiler()
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\build.py", line 804, in checkCompiler
CC = runcmd('"%s" -c "%s"' % (PYTHON, cmd), getOutput=True, echoCmd=False)
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-_1z01her\wxpython_0eee72bdff5f46b4b090c3fb93ed2624\buildtools\config.py", line 874, in runcmd
print(output)
UnicodeEncodeError: 'gbk' codec can't encode character '\xd0' in position 89: illegal multibyte sequence
Finished command: build_wx (0.280s)
Finished command: build (0.280s)
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.
"F:\新建文件夹 (6)\python.exe" -u build.py build
Command '"F:\新建文件夹 (6)\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.
C:\Users\Administrator>
购物车
发表新帖
立即签到








