美文网首页
python入门教程python 3.4 安装 pygame 和

python入门教程python 3.4 安装 pygame 和

作者: Python界的一股清流 | 来源:发表于2020-04-21 19:00 被阅读0次

python 版本选择

windows xp 和 server 2003 安装 python, 可用最高版本是 3.4.4。
从 win 7 开始才可以安装 python >= 3.5 版本。

版本检测

python -V

python 3.4.4

升级 pip

python -m pip install --upgrade pip

DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
大意: Python 3.4 从 2019.03 起没有官方支持, 建议不再使用,请升级使用更新版本的 python。支持 python 3.4 的最后一版 pip 是 19.1。

pip -V

pip 19.0.3 from c:\python34\lib\site-packages\pip (python 3.4)

注意:

pip 升级到最新版本后,才能安装 pygame 和 wxPython。
pip 如不升级,安装 pygame 和 wxPython 会出现大串的错误提示。

安装 pygame

pip3 install pygame

....
Installing collected packages: pygame
Successfully installed pygame-1.9.4
^^^^^^^^

安装成功 pygame。

安装 wxPython

pip3 install wxpython

...
Installing collected packages: Pillow, six, wxpython
Successfully installed Pillow-5.4.1 six-1.12.0 wxpython-4.0.4
^^^^^^^^

成功安装 wxPython,同时自动安装支持库: Pillow 和 six。

图怪兽_dac48fa16229c31495ebfa79b1e0e27c_79240.jpg

相关文章

网友评论

      本文标题:python入门教程python 3.4 安装 pygame 和

      本文链接:https://www.haomeiwen.com/subject/jmsuihtx.html