Installation of pygame with Anaconda

后端 未结 9 1381
执念已碎
执念已碎 2020-12-16 11:26

I have Anaconda 1.6.2, which uses Python 2.7.5, installed on a Windows 7 64-bit system.
I need to install Pygame 1.9.1

相关标签:
9条回答
  • 2020-12-16 11:44

    This worked for me on windows :

    conda install -c cogsci pygame=1.9.2a0
    

    This didnot work for me on windows machine :

    conda install -c tlatorre pygame=1.9.2
    
    0 讨论(0)
  • 2020-12-16 11:46

    Using Jupyter Notebook 5.5.0 and running "install pygame" without the pip command allowed for the installation of pygame 1.9.3 for Python 3.6.5 on windows

    0 讨论(0)
  • 2020-12-16 11:50

    Another way to do the job, as i see, is to reinstall Anaconda using its Windows installer so that later you can install your pygame using Windows installer too. This could save your much work in installer pygame from source.

    Note that the versions of your Anaconda and pygame should be both 32 or 64 bits, and be using the same python version.

    0 讨论(0)
  • 2020-12-16 11:50

    For anyone with a Linux computer I found a link that might be helpful:

    https://anaconda.org/tlatorre/pygame

    run this command in your terminal :

    conda install -c tlatorre pygame=1.9.2 
    

    Then close Spyder and restart it

    0 讨论(0)
  • 2020-12-16 11:54

    This worked for me:

    1. Open Anaconda Prompt (from Start Menu > Anaconda3)
    2. Type command 'pip install pygame'
    3. Open Spyder and import pygame

    It should work.

    0 讨论(0)
  • 2020-12-16 11:56

    The following works with Anaconda2 on Win7 (32bit).

    conda install -c cogsci pygame=1.9.2
    
    0 讨论(0)
提交回复
热议问题