简体   繁体   English

无法安装Python和pygame

[英]Python & pygame can't be installed

I have tried (many, many, many) times now, installing pygame on my Mac (using brewer) but it always comes back with "No such file in directory". 我已经尝试了很多次(很多次),在Mac上(使用brewer)安装pygame,但始终返回“目录中没有此类文件”。 Then i tried installing python 2.7 via brewer, and the same error was output again. 然后我尝试通过brewer安装python 2.7,并再次输出相同的错误。 I am using OSX El Capitan 10.11. 我正在使用OSX El Capitan 10.11。

What can be the cause for this? 这可能是什么原因? I am by no means a genius with using the terminal, so i (now) assume that's where i f'ed up at some point. 我绝对不是使用终端的天才,所以我(现在)假设那是我在某个时候起床的地方。

It would really help if you could guide me through the installation process. 如果您可以指导我完成安装过程,那将真的有帮助。

Thank you so much. 非常感谢。

Why are you installing python with brew? 为什么要在brew中安装python? Why not install it with pip? 为什么不使用pip安装它? pip install hg+ http://bitbucket.org/pygame/pygame

I just installed pygame in OSX El Capitan. 我刚刚在OSX El Capitan中安装了pygame。 I had a similar problem. 我有一个类似的问题。 Did you install x-code developer tools? 您是否安装了X代码开发人员工具? Also, two extremely straight forward directions I found were: 另外,我发现两个非常简单的方向是:

http://www.alexsilcock.net/notes/installing-python-3-pygame-and-pyopengl-on-mac-os-x-el-capitan/ http://www.alexsilcock.net/notes/installing-python-3-pygame-and-pyopengl-on-mac-os-x-el-capitan/

http://kidscancode.org/blog/2015/09/pygame_install/ http://kidscancode.org/blog/2015/09/pygame_install/

The first one is based off the second one. 第一个基于第二个。 Kidscancode goes over how to install homebrew, cask, and everything you need. Kidscancode介绍了如何安装自制酒,酒桶以及您需要的一切。 I hope this helped :). 希望对您有所帮助:)。

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

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