简体   繁体   English

Anaconda是否安装了适用于Python 3.7的Pygame版本?

[英]Is there an appropriate version of Pygame for Python 3.7 installed with Anaconda?

I'm new to programming and I just downloaded Anaconda a few days ago for Windows 64-bit. 我是编程新手,几天前刚刚下载了Windows 64位版本的Anaconda。 I came across the Invent with Python book and decided I wanted to work through it so I downloaded that too. 我遇到了《用Python编写Invent》一书,并决定我想完成它,所以我也下载了它。 I ended up running into a couple issues with it not working (somehow I ended up with Spyder (Python 2.7) and end=' ' wasn't doing what it was supposed to so I uninstalled and reinstalled Anaconda -- though originally I did download the 3.7 version). 我最终遇到了几个问题,因为它无法正常工作(以某种方式我最终使用了Spyder(Python 2.7),并且end =''没有按预期的方式工作,因此我卸载并重新安装了Anaconda -尽管最初我确实下载了3.7版本)。 It looked as if I had the 2.7 version of Pygame. 好像我有2.7版本的Pygame。 I'm looking around and I don't see a Pygame version for Python 3.7 that is compatible with Anaconda. 我环顾四周,但没有看到与Anaconda兼容的Python 3.7的Pygame版本。 The only ones I saw were for Mac or not meant to work with Anaconda. 我唯一看到的是Mac电脑,或者不打算与Anaconda一起使用。 This is all pretty new to me so I'm not sure what my options are. 这对我来说都是很新的,所以我不确定我的选择是什么。 Thanks in advance. 提前致谢。 Also, how do I delete the incorrect Pygame version? 另外,如何删除不正确的Pygame版本?

just use pip install pygame & python will look for a version compatible with your installation. 只需使用pip install pygamepython就会查找与您的安装兼容的版本。

If you're using Anaconda and pip doesn't work on CMD prompt , try using the Anaconda prompt from start menu. 如果您使用的是Anaconda,而pipCMD prompt不起作用,请尝试从开始菜单使用Anaconda prompt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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