Install scrapy log under Windows10

Install scrapy log under Windows10

1. Download python3.6

2. Add the paths of python.exe and pip.exe to the system environment variable path

  Such as c:\python36_64

C:\Python36_64\Scripts

3. Update pip

 python.exe -m pip install --upgrade pip

 

4. Install win32api package

pip install pypiwin32

 

If it is not installed, running the 'scrapy bench' test command will give the following error message

Scrapy run ImportError: No module named win32api error

 

The solution to this problem on the windows system needs to install the Py32Win module, but there will be hundreds of errors when installing the exe directly through the official website link. It is more convenient to do so.

pip install pypiwin32

 

5. Precautions

 If the pip update is installed through the cmd command, the following prompts will appear for other packages

cmd system error 5 access denied solution

 

Sometimes we often have errors that cannot be run under cmd (system error 5 access is denied), that is because cmd is not running as an administrator, so how to run it as an administrator? ? ?

 

Tools/Materials

  • cmd

Baidu experience: jingyan.baidu.com

method/step

  1. 1

Find cmd.exe in C:\Windows\System32 (the operating system is divided into 32-bit and 64-bit, depending on personal circumstances), then right-click cmd.exe

 

  1. 2

Select Advanced in the lower right corner and tick "Run as administrator"

 

  1. 3

Re-open cmd and run the command again? ? Is it all right? ?

 

END

Baidu experience: jingyan.baidu.com

Precautions

  • I have also been looking on the Internet for a long time. The Internet is all about letting you right-click and select "Run as administrator (A)". The disadvantage of this method is that every time you open cmd, you have to choose to run as an administrator. And my method does not need it. After setting it once, it can be run directly in the future.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325257394&siteId=291194637