标签:
1) check install or not
在mac终端输入命令:which python 即可查看python的路径
2)未安装时,手动下载安装包 地址:https://www.python.org/downloads/
选择下载 Mac OS X 64-bit/32-bit installer 安装
1) check install or not
在mac终端输入命令:$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import twisted
2) 未安装时,手动下载安装包 地址:https://twistedmatrix.com/trac/wiki/Downloads
3)解压后,点击setup.py > 右键"打开方式" >选择 “Build Applet”
4)在mac终端输入命令:$python setup.py install
直到提示
Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Finished processing dependencies for Twisted==15.2.1
安装成功。
1) 下载地址: https://pypi.python.org/pypi/zope.interface/4.1.2#downloads
2)安装过程同twisted. 不再重复。
install python+twisted+mysqldb+nginx+uwsgi on mac
标签:
原文地址:http://www.cnblogs.com/tangkaixin/p/4593642.html