http://twistedmatrix.com/trac/browser/trunk/twisted/words/protocols/jabber/xmlstream.py
我的副本(3年前的697行)位于:
/System/library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/twisted/words/protocols/jabber/xmlstream.py
我运行了网站上发现的mac安装程序,看起来安装得很好,但显然我缺少的东西:
http://twistedmatrix.com/trac/wiki/Downloads
有人能告诉我如何在我的Mac上正确更新扭曲?
解决方法 尝试使用virtualenv和pip(sudo easy_install virtualenv pip),这是避免你遇到的依赖地狱的好方法.使用virtualenv,您可以创建独立的Python环境,然后使用pip,您可以直接将新软件包安装到virtualenvs中.
这是一个完整的例子:
#create fresh virtualenv,voID of old packages,and install latest Twistedvirtualenv --no-site-packages twisted_envpip -E twisted_env install -U twisted#Now activate the virtualenvcd twisted_envsource bin/activate#test to see you have latest Twisted:python -c "import twisted; print twisted.__version__"总结
以上是内存溢出为你收集整理的python – 如何更新扭曲的框架全部内容,希望文章能够帮你解决python – 如何更新扭曲的框架所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)