Search code examples
pythonpiptwisted

Known version twisted python


I would like to check what version of twisted python is installed on my OS. I need to have a version 17.1.0 or greater and I work on CentOS 7.

I tried this:

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

But how can I upgrade my version? If I do this, will it update it?

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

Solution

  • Use:

    pip search twisted
    

    among the output you should see the desired information:

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

    update to latest available version with:

    pip install --upgrade twisted