尝试为python3安装wxpythonphoenix

2024-05-14 22:58:42 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图用这个命令通过pip安装wx Phoenix时

pip3 install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

好吧,经过长时间的尝试,我得到了一个错误:

^{pr2}$

有人有同样的问题吗?我怎么才能解决这个问题?在


Tags: installpiporg命令httphostpip3wxpython
1条回答
网友
1楼 · 发布于 2024-05-14 22:58:42

我想你在Unix平台上。在这种情况下,您输入的命令将找不到任何轮子,请下载源包并尝试编译它。请参见README.txt中要获取wxPython Linux wheels的操作:

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

相关问题 更多 >

    热门问题