6

I am trying to install scrapy on Windows 10,
By following these tutorials:
https://docs.scrapy.org/en/latest/intro/tutorial.html
https://www.accordbox.com/blog/scrapy-tutorial-4-how-install-scrapy-windows/

After installing with anaconda using conda install -c conda-forge scrapy, I write "scrapy" in anaconda prompt and get:

Fatal error in launcher: Unable to create process using '"c:\bld\scrapy_1564100571450\_h_env\python.exe"  "C:\Users\Rodzice.Mateusz-PC\Anaconda3\Scripts\scrapy.exe" '

also scrapy -h yields almost the same information, with -h on the end

typing scrapy startproject x in cmd gives

'scrapy' is not recognized as an internal or external command,
operable program or batch file.

My environmental variables do not have any spaces.

Also I have tried creating virtualenv and installing scrapy inside of it. The error i got

I have got newest Microsoft Visual C++

  • 7
    I am using anaconda on window and was facing same issue. **python -m scrapy startproject scrapy_poc** cmd work for me. Might help other. – Nitendra Oct 24 '19 at 06:46
  • 1
    @Nitendra this works like a charm! tried many other steps but couldnt solve it – ALSP Nov 04 '19 at 06:23
  • 2
    If you did a conda based scrapy installation, first uninstall scrapy : conda uninstall scrapy. And then do : pip install scrapy . Worked like a charm for python 3.6 – bad programmer Jan 05 '20 at 10:20

2 Answers2

1

run anaconda prompt as administrator and install Scrapy

  1. pip install scrapy

check the version as scrapy install correctly

  1. scrapy -v

now run anaconda prompt without administrator

  1. scrapy startproject example
Tauqeer Sajid
  • 101
  • 1
  • 1
  • 10
0

For installing scrapy you don't need to install Anaconda.

1. Make sure that you have python in your system.
2. Create a virtualenv (pip install virtualenv)
3. Install scrapy (pip install scrapy)
Arun Augustine
  • 1,690
  • 1
  • 13
  • 20
  • I also did it. I created virtualenv, and inside of it i tried use pip install scrapy. This is log I was given in cmd :https://pastebin.com/5ahFxrqU – Mateusz Pełechaty Aug 03 '19 at 08:57
  • you need to install some of the visual studio tools to support scrapy in windows. check the links https://stackoverflow.com/questions/51927014/microsoft-visual-c-14-0-is-required, https://stackoverflow.com/questions/48541801/microsoft-visual-c-14-0-is-required-get-it-with-microsoft-visual-c-build-t – Arun Augustine Aug 05 '19 at 02:00
  • if you use windows, you have to use anaconda, it is in the scrapy documentation – Felipe Castillo Mar 29 '20 at 14:32