当我尝试使用此命令通过pip安装wx Phoenix时
pip3 install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
好吧,经过很长时间尝试构建它我得到了这个错误:
Command "/usr/local/bin/python3.4 -u -c "import setuptools, tokenize;
__file__='/tmp/pip-build-q1ih5z3f/wxPython-Phoenix/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-wygy2a7y-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1
in /tmp/pip-build-q1ih5z3f/wxPython-Phoenix/
有人有同样的问题吗?我怎么解决这个问题?
答案 0 :(得分:1)
我想你是在Unix平台上。在这种情况下,您输入的命令将找不到任何轮子,下载源包并尝试编译它。请参阅README.txt如何获取wxPython Linux车轮:
Wheels for Linux
----------------
Since there are various options for distro and wx port (GTK2 or GTK3) then the
files can not all be located in the same folder like we can do for the Windows
and OSX builds. This just simply means that you'll need to drill down a
little further to find the URL to give to pip. For example, to get the GTK3
Phoenix builds for Ubuntu 16.04 (and 16.10, LinuxMint 18, and probably others)
you can use a pip command like this:
pip install -U --pre \
-f https://wxpython.org/Phoenix/snapshot-builds/linux/gtk3/ubuntu-16.04 \
wxPython_Phoenix