代码之家  ›  专栏  ›  技术社区  ›  user9099802

已知版本twisted python

  •  1
  • user9099802  · 技术社区  · 8 年前

    我想检查一下我的操作系统上安装了什么版本的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
    
    2 回复  |  直到 8 年前
        1
  •  2
  •   Mike Müller    8 年前

    使用:

    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
    
        2
  •  0
  •   chashao    5 年前

    如果已安装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: