How to install Twisted on Ubuntu
This article mainly introduces "how to install Twisted on Ubuntu". In daily operation, I believe many people have doubts about how to install Twisted on Ubuntu. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to install Twisted on Ubuntu". Next, please follow the editor to study!
Method 1:
Download twisted package, Twisted-3.2.0.tar.bz2, on Ubuntu
Cd to the download directory, extract it with tar-jvxf Twisted-13.2.0.tar.bz2, and after the decompression is finished, enter the directory Twisted 13.2.0, and then use the python setup.py install command to install it.
After completion, enter python in shell to display the python version information, and then enter import twisted. No exception indicates that the installation is successful.
Method 2:
Enter sudo apt-get install python-setuptools in the terminal
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 there is no abnormal message, the installation is successful.
At this point, the study on "how to install Twisted on Ubuntu" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!