wxpython在python 3.X下的安装方法

wxpython在python 3.X下变成了wxpython ProjectPhoenix项目,其官方主页在[wxpython ProjectPhoenix](https://wiki.wxpython.org/ProjectPhoenix"wxpython ProjectPhoenix官方主页")网址为https://wiki.wxpython.org/ProjectPhoenix 。换句话说,若想在python 3.X版本下使用wxpython,就必须安装wxpython ProjectPhoenix。

小编在已经有python2的wxpython情况下,发现使用pip安装需要在python3.X为主的Windows cmd命令行下才能安装。小编同时安装了anaconda 2和 anaconda 3。在这种情况下,需要进入anaconda3的目录下运行Windows CMD命令行。否则,使用pip进行安装会报错。

cmd 命令行

然后才能运行pip命令进行安装。

以下是运用pip命令进行安装wxpython ProjectPhoenix的方法。

- 找到合适的安装版本
安装文件下载地址:https://wxpython.org/Phoenix/snapshot-builds/

![wxpython Phoenix安装版本](https://img-blog.csdn.net/20160715183704479)

其中,文件命名规则请参考以下引用文字:

File naming conventions:

  • Files with the “*.whl” extension are binary wheel files (https://wheel.readthedocs.org/en/latest/). See below for more info.

  • Files with the “*.tar.gz” extension are compressed tar archives of the Phoenix and wxWidgets source code.

  • The “-docs-.tar.gz” files are compressed archives of the documentation.

For example:
wxPython_Phoenix-3.0.3.dev1549+fa6f31f-cp33-cp33m-macosx_10_6_intel.whl

means:
- This is the wxPython_Phoenix package
- It is version 3.0.3.dev1549+fa6f31f (a development version, with
the build number derived from the source control system.)
- It is built for CPython version 3.3
- It is built for the macosx operating system
- It is built for OSX version 10.6 or greater
- It is built for Intel processors.

- 安装命令
根据wxPython Phoenix Snapshot Builds文件1
在Windows CMD命令符下,输入以下命令。
pip install https://wxpython.org/Phoenix/snapshot-builds/(此处添加以上版本截图文件名)
比如,需要安装python3.5的wxpython版本:

cmd截图2

运行以上命令,就可以安装python 3.X版本的wxpython了。
注:使用wxpython Phoenix API的手册都在文中wxpython Phoenix下载地址中的tar.gz压缩包中。
  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值