第一步,现在windows10上安装Ubuntu 20.04.5 LTS;
第二步,下载Python3.11.2的源代码,然后编译安装;
第三步,下载pip安装工具;
第四步,安装wxPython
pip3 install -U wxPython
结果遇到错误——
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0o19_5fk/wxPython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0o19_5fk/wxPython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install