linux环境部署python,并发送voevent

安装python3.8版本

sudo apt-get install python3.8  

输入以下指令来判断是否已经安装成功:

python3.8 --version 

为Python 3安装pip
为Python 3.x安装pip3运行:

sudo apt-get update
sudo apt install python3-pip

和前面一样,我们将通过以下方式验证pip3安装:

pip3 --version

安装comet

sudo apt install virtualenv
$ virtualenv comet
如果报错
The path python2 (from --python=python2) does not exist

那么直接安装python2

sudo apt-get install python

接着直接按照流程走完:

The latest version of Comet and all of the tools it depends upon can be installed using pip. It is generally a good idea to use virtualenv to create an isolated, self-contained installation:

$ virtualenv comet
$ . comet/bin/activate
$ pip install comet

Manual installation
Requirements

Comet is developed targeting Python 2.7 with experimental support for Python 3.4 and later. It depends upon:

Twisted (version 11.1.0 or later for Python 2.7; 16.0 or later for Python 3.x);
lxml (version 2.3 or later);
zope.interface (versions 3.6.0 or later for Python 2.6; 4.1.1 or later for Python 3.x);
py2-ipaddress (Python 2.7 only; not required for Python 3.x).

How you make these dependencies available on your system is up to your (or, perhaps, to your system administrator). However, the author strongly suggests you might start by taking a look at virtualenv.
Downloading

See the release history to obtain the latest version of Comet or check out the source from the GitHub repository. The latest version of the source can be obtained using git:

$ git clone https://github.com/jdswinbank/Comet.git

Installation

Comet includes a distutils setup script which can be used for installation. To install in your system-default location, run:

$ python setup.py install

A number of other options are available: see also:

$ python setup.py --help

Testing

After installation, you should check that Comet is working properly. The Twisted framework used by Comet makes this easy with its trial tool. Simply run:

$ trial comet

No failures or errors are expected in the test suite. If you see a problem, please contact the author for help.
如果走完流程不能执行,那么请退出后重新进入系统:执行

comet-sendvo --help
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值