简体   繁体   中英

Where is exactly Pygame installed on my PC?

I have recently installed Pygame on Windows 10 using pip (confirmed the installation by running: python3 -m pygame.examples.aliens ). I couldn't find any directories with Pygame on my computer. I found the built-in modules of Python in its installation directory but not Pygame's.

Where are the different Python packages installed if they're not in the installation directory, and specifically where are Pygame's?

My pygame file location was:

C:\\Users\\*YourUsername*\\AppData\\Local\\Programs\\Python37-32\\Scripts

However you need to change your username and you may have to change it for which Python install you have

Using a Windows machine, you can use a suggestion above except use double quotes in place of the single quotes:

python -c "import pygame; print(pygame.__file__)"

Using this command I found the pygame package installed on my machine at:

C:\\Users\\*YourUsername*\\AppData\\Roaming\\Python\\Python39\\site-packages\\

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM