我一直在尝试为python 3.6安装wxPython phoenix并且没有任何作用。
我试过:1)使用pip install 2)下载tar / whl文件并将其wx文件夹解压缩到安装文件夹(尝试使用不同类型的文件)。
两者都没用。如果有人成功请告诉我。
谢谢。
他们刚刚发布了wxPython 4.0(凤凰城的第一个版本)wxPython源代码存档。
键入以下命令获取:
对于Windows:
pip install -U wxPython
对于Linux:
pip install -U \
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \
wxPython
我很确定这会奏效。我不是Windows用户,所以我无法测试它。
C:\python36\scripts\pip.exe install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
如果您是Anaconda用户,可以使用conda软件包进行安装。见https://anaconda.org/newville/wxpython-phoenix
要使用conda安装此程序包,请运行以下某个选项:
conda install -c newville wxpython-phoenix
conda install -c newville/label/GSECARS wxpython-phoenix
conda install -c newville/label/gsecars wxpython-phoenix
这在Windows 10上通过Visual Studio 2017社区安装了python,对我有用:
%LOCALAPPDATA%\ Programs \ Python \ Python36 \ scripts \ pip.exe install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
(我想对user2470057的回复发表评论,但我没有足够的回复评论)
six
)python -m pip install“wxPython-4.0.0rc1.dev3436 + efbe850-cp36-cp36m-win_amd64.whl”
C:\Python36-64>python -m pip install "wxPython-4.0.0rc1.dev3436+efbe850-cp36-cp36m-win_amd64.whl"
Processing c:\python36-64\wxpython-4.0.0rc1.dev3436+efbe850-cp36-cp36m-win_amd64.whl
Collecting six (from wxPython==4.0.0rc1.dev3436+efbe850)
Downloading six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six, wxPython
Successfully installed six-1.11.0 wxPython-4.0.0rc1.dev3436+efbe850
测试:
C:\Python36-64>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>>
在工作,在忙:
pip.exe install --upgrade --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython
自https
为wxpython.org
和标签wxPython_Phoenix
改为wxPython
后,不需要trusted_host。