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.