安装pygame不成功
import pygameTraceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygame
>>>
怎么才能弄好,求大神 安装了没有?
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pygame
安装在哪里?
pip list 看下列表里有没有 在cmd里面执行代码"pip install pygame"试试 https://fishc.com.cn/thread-180234-1-1.html 疾风怪盗 发表于 2020-10-10 17:21
安装了没有?
C:\Users\123456>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pygame
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pygame
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9b/f8/98f03e7390378c3f9627bf43e84957cb7ab6621196922821398985657cef/pygame-1.9.6-cp27-cp27m-win_amd64.whl (4.2 MB)
|████████████████████████████████| 4.2 MB 29 kB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.6
算是安装成功么,怎么看pip list 本帖最后由 AB与C 于 2020-10-14 19:59 编辑
运行cmd输入pip list查看安装的库,其实也可以在pycharm--setting里搜索这个库,能install
页:
[1]