简体   繁体   English

mac osx 10.8上的初学者python

[英]beginner python on mac osx 10.8

I'm learning programming and have been working with Ruby and ROR, but feel I like Python's language better for learning programming. 我正在学习编程并且一直在使用Ruby和ROR,但我觉得我更喜欢Python的语言来学习编程。 Although I see the beauty of Ruby and Rails, I feel I need a language more easy to learn programming concepts, thus Python. 虽然我看到了Ruby和Rails之美,但我觉得我需要一种更容易学习编程概念的语言,因此我需要Python。 However, I can't seem to find a community online or offline that work on Apple osx; 但是,我似乎找不到在Apple osx上工作的在线或离线社区; mostly seems to be PC people for Python. 大多数人似乎都是Python的PC用户。 What I like about Ruby is that there is a lot of books, communities, etc, and they tend to have a good amount of Mac resources. 我喜欢Ruby的是,有很多书籍,社区等,他们往往拥有大量的Mac资源。 Would someone be able to point me to an google groups, forums, etc for beginner Python programming that may have tutorials, or help for people running on Mountain Lion? 有人能够指向我的谷歌小组,论坛等初学者Python编程,可能有教程,或帮助山狮上运行的人? I'm feeling a little frustrated and caught between the Ruby Vs. 我感觉有点沮丧,陷入了Ruby Vs. Python paradigm, and just want some mac specific resources working with latest Python and eventually Django. Python范例,只是希望一些特定于mac的资源使用最新的Python并最终使用Django。

Thanks for any help you may be able to offer! 感谢您提供的任何帮助!

Mac OS X 10.8 comes bundled with Python 2.7.2 found at /usr/bin/python . Mac OS X 10.8与/usr/bin/python Python 2.7.2捆绑在一起。 Generally in the Python world your operating system is abstracted away, so there aren't that many OS-specific communities. 通常在Python世界中,您的操作系统被抽象掉了,因此没有那么多特定于操作系统的社区。 Apple fully embraces Python, however, and you can even write fully native applications using Python. Apple完全支持Python,你甚至可以使用Python编写完全本机应用程序。

My suggestions to get you started would be to: 我的建议是让你开始:

  • Install homebrew - This is an open source package installer for Mac OS X, inspired by Debian's apt-get or RedHat's yum . 安装homebrew - 这是一款适用于Mac OS X的开源软件包安装程序,受Debian的apt-get或RedHat的yum启发。 This will allow you to easily install many of the system-level dependencies like database servers, NoSQL servers, system libraries, and so on. 这将允许您轻松安装许多系统级依赖项,如数据库服务器,NoSQL服务器,系统库等。 You will inevitably be required to install this stuff as time goes by, so it's best to have the right tool for the job! 随着时间的推移,你不可避免地需要安装这些东西,所以最好有适合这项工作的工具!

  • Install pip - The Python package installer. 安装pip - Python包安装程序。 You won't regret it. 你不会后悔的。 This will allow you to easily manage external Python packages. 这将允许您轻松管理外部Python包。

  • Check out the official Python tutorial . 查看官方Python教程 It's quite good, but also assumes you have at least basic understanding of programming. 它非常好,但也假设您至少对编程有基本的了解。

  • Check out Learn Python the Hard Way , a free e-Book by Zed Shaw, which assumes no prior programming experience and is very, very easy to follow. 查看“ 学习Python的艰难之路” ,这是Zed Shaw的免费电子书,它假定没有先前的编程经验,并且非常,非常容易理解。

These should keep you busy for a while!! 这些应该让你忙一阵子!!

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

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