V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
baiyi168
V2EX  ›  问与答

采用 Pycharm 安装 Pygame 等插件时总失败是什么原因?

  •  
  •   baiyi168 · 2018-04-13 11:09:45 +08:00 · 2050 次点击
    这是一个创建于 2260 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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,都试过不管用,请各位大神帮忙回答下大概是什么原因,多谢多谢!

    silhouette
        1
    silhouette  
       2018-04-13 12:45:23 +08:00 via Android
    conda 试一下?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1469 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:52 · PVG 07:52 · LAX 16:52 · JFK 19:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.