尝试为 python 3 安装 wxPython Phoenix

Trying to install wxPython Phoenix for python 3

当我尝试使用此命令通过 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/

有人遇到同样的问题吗?我该如何解决这个问题?

我想你是在 Unix 平台上。那样的话你输入的命令是找不到wheel的,下载源码包编译试试。请参阅 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