Python RESTful Service(1)Twisted Version Upgrade

paopao00 2017-05-11

PythonRESTfulService(1)TwistedVersionUpgrade

CheckPythonversionandPipVersion

>python-V

Python2.7.13

>pip-V

pip9.0.1from/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages(python2.7)

Makesurepipisthelatest

>pipinstall-Usetuptools

>pipinstall-Upip

Installtwistedonmycommandlinetoolenvironment

Trytofetchthelatestversionrightnow.

>wgethttps://twistedmatrix.com/Releases/Twisted/17.1/Twisted-17.1.0.tar.bz2

Unzipthatandmovetotheworkingdirectory

Installfromthesource

>pythonsetup.pyinstallOr>pipinstallTwisted

Verifytheinstallation

>>>importtwisted

>>>printtwisted.version

[Twisted,version17.1.0]

Ihaveasampleprojectcalledsillycat-prest.Andthereiscommandtorunthat

>pythonrestapi/com/sillycat/prestapi/RestAPI.py

Butitseemsalotofworktodoafterwehavethetwisted.

Let’stryhttps://github.com/tornadoweb/tornado

References:

twisted

tornado

http://www.tornadoweb.org/en/stable/guide.htmlofficialdocument

相关推荐