Problem description
Windows: 64-bit win7 system
python: download from the official website is python 2.7.2 64-bit. The actual folder would look like this:
Then install scrapy and try scrapy. CMD: open the command prompt, enter scrapy shell http://cn.bing.com/
and output a heap. The last line: ImportError: No module named win32api.
Go to http://sourceforge.net/projects/pywin32/files/pywin32/ to download win32api
select version for pywin32-219. The win – amd64 – py2.7. Exe, (because the system is 64, so choose amd64)
Install the win32api.
and then enter the command prompt: scrapy shell http://cn.bing.com/
. The last line: ‘scrapy shell: DLL load failed: %1 is not an valid Win32 application.’
An attempt to solve a problem
View the information on the Internet, pywin32-219. Win-amd64-py2.7. exe to reinstall, but the problem is still in, in python IDE input Import Win32API, or the above problems, that is to say, this problem as to Win32API, has nothing to do with the package installed.
Since I installed other Python versions yesterday (the file is integrated), the Python file is confused, so I uninstall Python again, delete the Python path in the system environment variable path and the python file in the registry, find python methods in the registry, and enter: HKEY_CURRENT_USER – > The software.
Reinstall Python, follow the previous steps again, and you get the same error.
looked at the messy material on the Internet.
then try it:

Read More:
- Error in installing pywin32 under Windows: close failed in file object D estructor:sys.excepthook is missing lost sys.stderr
- Failed building wheel for twisted solution appears after installing scratch
- Error: Command ‘/ usr / bin / clang’ failed with exit status 1 solution for Mac OS installation
- Importerror: DLL load failed while importing win32gui: 1 is not a valid Win32 Application.
- Scrapy runs a crawler with an error importerror: cannot import name suppress
- Python Basics – python3 installing pyhook and pywin32 Libraries
- Wrong installation of registry to registry
- The app failed to start because there is no Qt platform to initialize
- Error: MySQL shutdown unexpectedly
- No module named numpy error in Python code
- error: Microsoft Visual C++ 9.0 is required
- Win32ctypes. Pywin32. Pywintypes. Error: (2 ‘loadlibraryex’,’the system can’t find the specified file. ‘)
- On the problem of from PIL import image
- Exception: jupyter command Jupiter notebook not found
- Solution: PIP install MySQL Python has the following problems
- Error: (2, ‘RegOpenKeyEx’, error resolution
- Python custom class typeerror: ‘module’ object is not callable
- Solution to syntaxerror: invalid syntax in PIP install XXX
- Python uses cxfree to package script files into executable programs
- python: This application failed to stat could not find or load the Qt platform plugin “windows”