Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Fatal error in launcher: Unable to create process using *path*/scrapy.exe" in anaconda? [duplicate]

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++

like image 856
Mateusz Pełechaty Avatar asked Aug 01 '19 11:08

Mateusz Pełechaty


1 Answers

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
like image 94
Tauqeer Sajid Avatar answered Oct 12 '22 01:10

Tauqeer Sajid