Learn today scrapy After setting up the virtual environment ,pip install scrapy The following error is reported :

error: command ‘C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit status -1073741515

First, I use win10,Python3.6,pycharm2017.3( because pycharm It is convenient for novices to install third-party packages and build virtual environment ).

Look back at this mistake “error: command ‘C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit status
-1073741515”, It shows a VS Component load failed exit , Because there should be no corresponding dll file . stay google,Stack Overflow After a wave , We also see many solutions :

Install according to the error report dll file ( It should work )

cmd What package is not installed successfully , Install this package separately , Reinstalling scrapy

I used the second solution , Because it can't be installed twisted, So first cd To virtual environment scripts Input under directory activate Can enter the virtual environment

Enter as shown by the arrow venv virtual environment

Because it was twisted Cannot install directly , So direct pip Installation may report an error , Recommended whl install . Amway a website Unofficial Windows Binaries
for Python Extension Packages <https://www.lfd.uci.edu/~gohlke/pythonlibs/>.
1. Download the corresponding whl file ( Download to scripts Directory )
2. stay scripts Directory , By command pip install XXX.whl(XXX It's downloaded whl file name )
3. After successful installation ,pip install scrapy Just do it
4. If there are other packages that cannot be installed , Same as above

There's another problem , It's possible for you to install scrapy Download is very slow , Cause connection timeout . The image of Douban is recommended here , use pip install -i https
://pypi.douban.com/simple scrapy Command to install .( Pay attention yes https)

Here's Amway pycharm This IDE, It is often seen that some students cannot successfully install the third-party library , Unable to create virtual environment , And make fun of it , similar “ Install wordcould Spent the afternoon ”, I have only one word for that ,

And then it's recommended for most people pycharm This artifact ( You don't have to know o( ̄︶ ̄)o

* pycharm Medium shortcut key Ctrl + Alt +s
* search project Interpreter
* As shown below

* Arrow one can install Various bags
* Arrow 2 can be new python Environmental Science , Including virtual environment
* Arrow 3 to select the current project environment
* And in Project Structure Multiple items can be selected to coexist in
Actually, none of this is a problem , Have some experience in dealing with such problems , I really feel sublime3 Is the best tool