How can I install pygame 13. Whenever I start python and type import pygame it tells me that there is no module named pygame. In the command line/DOS box/PowerShell window, enter the command How to install pygame Ask Question Asked 9 years, 6 months ago Modified 2 years, 2 months ago Viewed 121k times 10 I am running Ubuntu 13.10. One way to do that is to open that directory in File Explorer, click the "File" tab on the far left near the top, hover the mouse over "Open Windows PowerShell", then click "Open Windows PowerShell as Administrator." Another way is to press Windows-R, enter "cmd.exe", and "cd" to the proper directory. Open a Windows command line (DOS box) or PowerShell in that directory as an administrator.Despite the "amd" in the file name, that is not just for AMD processors but for any 64-bit Windows 10.) Save the file to a directory you can reach with the Windows command line (also called the DOS box) or Windows PowerShell as an administrator. (That file is near the bottom of the list on the given page. For the system I described the proper file is (I installed Python through Anaconda but this should also work if you used .)ĭownload the latest version of pygame, 1.9.3, from. I have installed different modules using conda install like tensorflow, numpy, pandas,matplotlib and they are all working but it is giving me an error in pygame.Here is how I installed pygame on my Windows 10 Home 64 bit system with Python 3.6. Create a new environment for the project. Also make sure you dont install it in your base environment. edit: conda install -n envname pip conda activate envname pip install pygame. Note that conda will notĬhange your python version to a different minor version unless you explicitly specify launch the terminal from inside anaconda nav. Not available for the python version you are constrained to. When python appears to the right, that indicates that the thing on the left is somehow If python is on the left-most side of the chain, that's the version you've asked for. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.įound conflicts! Looking for incompatible packages. Output: Collecting package metadata (current_repodata.json): done Then I used the following command: conda install -c cogsci pygame If so try this before running the above commands again: sudo python3 -m ensurepip. Sometimes pip is not installed and needs to be installed. To search for alternate channels that may provide the conda package you'reĪnd use the search bar at the top of the page. Some Linux systems call it pip3 if the above command printed something like sudo: pip: command not found then try: sudo pip3 install pgzero. PackagesNotFoundError: The following packages are not available from current channels: Retrying with flexible solve.Ĭollecting package metadata (repodata.json): done By using VS Code as your text editor / integrated development environment (IDE), Once you have Python installed, install pygame from the command line (or. Solving environment: failed with initial frozen solve. It gave me the following error: Collecting package metadata (current_repodata.json): done I used this command: conda install pygame I was trying to install Pygame module using conda.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |