unable to install scrapy windows 64 bit machine

 I was trying to install scrapy in windows 64 bit machine without anaconda / miniconda. Scrapy install guide don't help that much. then I write command :

                                                         pip install scrapy 

it's end up with twisted installation errors. like ::

Running setup.py install for Twisted ... error 

ERROR: Command errored out with exit status 1:

... ~~~~~ ~~~~~

....

.....

running build_ext

    building 'twisted.test.raiser' extension

    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

    ----------------------------------------

ERROR: Command errored out with exit status 1: 'F:\development\python-projects\scrapyenv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JAVA_USER\\AppData\\Local\\Temp\\pip-install-_4pqvg1b\\twisted_a5fcbb6d67f64aa7a5d6799ee5c9fcd4\\setup.py'"'"'; 

__file__='"'"'C:\\Users\\JAVA_USER\\AppData\\Local\\Temp\\pip-install-_4pqvg1b\\twisted_a5fcbb6d67f64aa7a5d6799ee5c9fcd4\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\JAVA_USER\AppData\Local\Temp\pip-record-304q2ux0\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\development\python-projects\scrapyenv\include\site\python3.9\Twisted' Check the logs for full command output.


Solution : 

Stop 01 : download Twisted‑20.3.0‑cp39‑cp39‑win_amd64.whl
form https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

 Stop 02 : run command 
                              pip install Twisted‑20.3.0‑cp39‑cp39‑win_amd64.whl

Stop 03 : install Scrapy with the command 
                                                                    pip install scrapy





Comments