已知版本扭曲 python

Known version twisted python

我想检查我的 OS 上安装了哪个版本的 twisted python。我需要 17.1.0 或更高版本,并且我在 CentOS 7.

上工作

我试过这个:

(.synapse)[root@nexus-chat1 .synapse]# twisted -v
  -bash: twisted : commande introuvable

但是我该如何升级我的版本呢?如果我这样做,它会更新吗?

(.synapse)[root@nexus-chat1 .synapse]# pip install twisted

使用:

pip search twisted

在输出中您应该看到所需的信息:

Twisted (17.9.0)                     - An asynchronous networking framework written in Python
  INSTALLED: 16.3.0
  LATEST:    17.9.0

更新到最新可用版本:

pip install --upgrade twisted

如果安装了twisted,可以写pip show twisted

(venv) ➜  testTwisted pip show twisted
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Name: Twisted
Version: 20.3.0
Summary: An asynchronous networking framework written in Python
Home-page: https://twistedmatrix.com/
Author: Twisted Matrix Laboratories
Author-email: twisted-python@twistedmatrix.com
License: MIT
Location: /home/ss/testTwisted/venv/lib/python2.7/site-packages
Requires: hyperlink, attrs, Automat, PyHamcrest, incremental, zope.interface, constantly
Required-by: