简体   繁体   English

如何在Web服务器上安装twis​​tedweb python库

[英]How to install twistedweb python library on a web server

I have a small application written in python using TwistedWeb. 我有一个使用TwistedWeb用python编写的小应用程序。 It is a chat server. 这是一个聊天服务器。 Everything is configured right now as for localhost. 现在一切都已配置为本地主机。 All I want is to run this python script on a server(shared server provided by Fatcow.com). 我只想在服务器(由Fatcow.com提供的共享服务器)上运行此python脚本。 I mean that the script will be working all the time and some clients will connect/disconnect to it. 我的意思是该脚本将一直运行,并且某些客户端将连接/断开连接。 Fatcow gives me python 2.5 without any custom libraries. Fatcow给了我没有任何自定义库的python 2.5。 Is there a way and a tutorial how to make it work with TwistedWeb? 有没有一种方法和教程,如何使其与TwistedWeb一起使用?

Thanks in advice. 感谢您的建议。

the easy_install/pip modes of installation are very likely to fail because of broken dependencies. easy_install / pip的安装模式很可能由于依赖关系破裂而失败。 You will have to download the tar and build it yourself. 您将必须下载tar并自行构建。 See the attached link for more info on installing the same on CENTOS. 有关在CENTOS上安装该链接的更多信息,请参见附件链接。

http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#CanIinstallTwistedusingeasy_installorpip http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#CanIinstallTwistedusingeasy_installorpip

I have contacted Fatcow.com support. 我已经联系Fatcow.com支持。 They do not support SSH connections and do not support Python 2.7 with Twisted library, especially python socket application as server. 它们不支持SSH连接,也不支持带有Twisted库的Python 2.7,尤其是作为服务器的python套接字应用程序。 So it is dead end. 所以这是死胡同。 Question resolved. 问题已解决。

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

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