baiyi168
V2EX  ›  问与答

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

  •  
  •   baiyi168 · Apr 13, 2018 · 2777 views
  •   You need to sign in to view this topic
    This topic created in 3154 days ago, the information mentioned may be changed or developed.

    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
    silhouette
    Apr 13, 2018 via Android
    1
    conda 试一下?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1414 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:58 · PVG 00:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.