开发者

How to install/organize python modules on a mac?

开发者 https://www.devze.com 2023-01-12 04:16 出处:网络
I have a mbp, but I\'ve been lazy and h开发者_开发知识库ave been using ubuntu for my python development thus far b/c its so easy to install modules etc.

I have a mbp, but I've been lazy and h开发者_开发知识库ave been using ubuntu for my python development thus far b/c its so easy to install modules etc.

How do you install modules on a mac? And best-practises with storing all .py files?


See my lengthy answer to a similar question here. Bottom line, if you are familiar and comfortable with a package-managed environment like on Ubuntu, you may want to use a package manager like MacPorts or Fink or Homebrew on OS X. But there are subtle differences since, unlike Ubuntu, this is not the system-wide package manager so you have to be aware of and co-exist with things supplied by Apple in OS X or by having multiple Python installations.


One of the perks of using high level languages is that they function mostly the same on each platform they support. Python is no diffent. You install modules the same way you do on Linux: using easy_install or pip, check them out http://pypi.python.org/pypi/setuptools http://pypi.python.org/pypi/pip

0

精彩评论

暂无评论...
验证码 换一张
取 消