Python development: Install twisted in windows

Source: Internet
Author: User

Method 1: Run easy_instal twisted in the command line

The error "Unable to find vcvarsall. bat" is prompted. This is because the twisted source code installation method requires the C compiling environment. If you have installed the vc development environment, you can use

You can also download MinGW for compilation.


[Plain]
Break;
Add the MinGW path to the environment variable path. For example, if MinGW is installed in D: \ MinGW \, add D: \ MinGW \ bin to the path;
Open the command line window and enter the directory of the twisted code in the command line window;
Enter the following setup. py install build -- compiler = mingw32 command to install it.

Break;
Add the MinGW path to the environment variable path. For example, if MinGW is installed in D: \ MinGW \, add D: \ MinGW \ bin to the path;
Open the command line window and enter the directory of the twisted code in the command line window;
Enter the following setup. py install build -- compiler = mingw32 command to install it.
 

Method 2: In windows, you can directly download and install

It seems that the installation is successful, but when twisted is used, that is, when twisted is introduced, such as: from twisted. internet. protocol import Protocol, ClientFactory

ImportError: Twisted requires zope. interface 3.6.0 or later: no module named

Therefore, you need to install the zope package and download and install it directly.


 


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.