Learn todayscrapy After setting up the virtual environment,pip installscrapy 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 usewin10,Python3.6,pycharm2017.3( becausepycharm 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 aVS Component load failed exit, Because there should be no correspondingdll file. staygoogle,Stack Overflow After a wave, We also see many solutions:

*
Install according to the error reportdll file( Should be feasible)

*
cmd What package is not installed successfully, Install this package separately, Reinstallingscrapy

I used the second solution, Because it can't be installedtwisted, So firstcd To virtual environmentscripts Input under directoryactivate Can enter the virtual environment



Enter as shown by the arrowvenv virtual environment



Because it wastwisted Cannot install directly, So directpip Installation may report an error, Recommend to passwhl install. Amway a websiteUnofficial Windows Binaries
for Python Extension Packages <https://www.lfd.uci.edu/~gohlke/pythonlibs/>.
1. Download the correspondingwhl file( Download toscripts Directory)
2. stayscripts Directory, By order pip install XXX.whl(XXX It's downloaded.whl file name)
3. After successful installation,pip install scrapy All right.
4. If there are other packages that cannot be installed, Same as above

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


Here's Amwaypycharm This typeIDE, 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 awordcould Spent the afternoon”, I have only one word for that,




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

* pycharm Shortcut keyCtrl + Alt +s
* searchproject Interpreter
* As shown below


* Arrow one caninstall Various packages
* Arrow 2 can be newpython Environmental Science, Including virtual environment
* Arrow 3 to select the current project environment
* And inProject Structure Multiple items can be selected to coexist in
Actually, none of this is a problem, Have some experience in dealing with such problems, Sincerely feelsublime3 Is the best tool