How to install Twisted on Ubuntu?

  
                

The installation of Ubuntu software can be easily installed through the software center, or it can be installed through the terminal. The following small series will introduce you to the method of installing Twisted under Ubuntu. Interested friends can come and understand.

Method a:

on the twisted Ubuntu download compressed, Twisted-3.2.0.tar.bz2,

cd to the download directory, tar & ndash; Jvxf Twisted-13.2.0.tar.bz2 decompress, after decompression is completed, enter the directory Twisted 13.2.0, and then use the python setup.py install command to install

After entering python in the shell, you can display python For version information, enter import twisted. If there is no exception, the installation is successful.

Method 2:

Enter sudo apt-get install python-setuptools

Sudo apt-get install python-dev

Sudo easy_install twisted

After the above command is completed, enter python in the terminal, display the python version information, and then enter import twisted. If no exception information appears, the installation is successful.

The above is the introduction of Ubuntu Twisted method, this article introduced a total of two installation methods, both need to use the command to install, choose to install according to their needs.

Copyright © Windows knowledge All Rights Reserved