已知版本的扭曲python

已知版本的扭曲python,python,pip,twisted,Python,Pip,Twisted,我想检查一下我的操作系统上安装了什么版本的TwistedPython。我需要17.1.0或更高版本的CentOS 7 我试过这个: (.synapse)[root@nexus-chat1 .synapse]# twisted -v -bash: twisted : commande introuvable 但是我如何升级我的版本呢?如果我这样做,它会更新吗 (.synapse)[root@nexus-chat1 .synapse]# pip install twisted 使用: 在输出

我想检查一下我的操作系统上安装了什么版本的TwistedPython。我需要17.1.0或更高版本的
CentOS 7

我试过这个:

(.synapse)[root@nexus-chat1 .synapse]# twisted -v
  -bash: twisted : commande introuvable
但是我如何升级我的版本呢?如果我这样做,它会更新吗

(.synapse)[root@nexus-chat1 .synapse]# pip install 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: 

不要将
pip安装为root用户。使用操作系统软件包,当操作系统软件包不足时,使用virtualenv或其他“沙盒”类型的解决方案。使用
pip
以root用户身份安装Python软件包会使您的操作系统软件包管理器出错,您以后会后悔的。pip要升级到操作系统软件包之上吗(
(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: