[Python] After installing PIP, Pygame, still import pygame error

Source: Internet
Author: User

Download the Pygame WHL file for installation in the tutorial "Python programming from Getting started to practice"

in the cmd window import pygame prompt error-free, in the Idel program can also run normally,

but pycharm error import pygame
modulenotfounderror:no module named ' Pygame '

Select items in Project interpreter settings and green plus sign on right, add Pygame but prompt fails

---------------------------------------------------------------------------------------
I have already solved ~
install with Cmd again, prompt is installed but the path is not in Pycharm but it is a path that you do not know.
requirement already satisfied:pygame in C:\USERS\ADMINISTRATOR\APPDATA\LOCAL\PR
ograms\python\python37-32\lib\site-packages (1.9.3)

manually to this path to the site-packages in the Pygame copy to Pycharm project path under the site-packages can be ~
Pycharm inside the installation feeling a lot of problems and problems detail also can not understand.

Reproduced in: https://www.52pojie.cn/forum.php?mod=viewthread&tid=737089&extra=page%3D1&page=1

[Python] After installing PIP, Pygame, still import pygame error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.