windows 系统,python 版本为 3.7.0 版本,通过安装 python 时自带安装了 pip,版本为 9.0.3 问题如下:通过命令行可以安装 Pygame 成功,且可以 import 使用,但是通过 Pycharm 时无法 import pygame,然后我就通过 Pycharm 的 Setting->Project Interpreter 进行安装 Pygame,每次安装都提示如下错误信息: Propsed solution: Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'E:\PycharmCodes\7Days\venv\Scripts\python.exe'
Command output:
.......
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pycharm-packaging\Pygame
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
在网上找了下方法,说通过命令行升级 pip,都试过不管用,请各位大神帮忙回答下大概是什么原因,多谢多谢!
1
silhouette 2018-04-13 12:45:23 +08:00 via Android
conda 试一下?
|