Scrapy Fatal error in launcher: Unable to create process using ‘”\\python.exe” “\\Conda\Scripts\scrapy.exe”‘ [SOLVED]

[SOLVED] Scrapy Fatal error in launcher: Unable to create process using ‘”\\python.exe” “\\Conda\Scripts\scrapy.exe”‘

While using Scrapy in the Conda environment, the following is one of the annoying Scrapy errors;

Fatal error in launcher: Unable to create process using ‘”d:\bld\scrapy_1572360424769\_h_env\python.exe” “C:\Users\Conda\Scripts\scrapy.exe”‘

 

To solve it follow the following steps in their order of appearance:

1. Run  the scrapy command to confirm the error you are experiencing is similar to the one referenced in this article. In case it is not, find the exact error in the different scrapy forums.

(base) PS C:\Users\> scrapy
Fatal error in launcher: Unable to create process using ‘”d:\bld\scrapy_1572360424769\_h_env\python.exe” “C:\Users\Conda\Scripts\scrapy.exe”

 

2. Run the command “conda remove scrapy” in the  Conda (Anaconda or Miniconda) environment. You can use either the Windows Command Prompt or Powershell. In my case, I like to use Powershell.

(base) PS C:\Users\> conda remove scrapy
Collecting package metadata (repodata.json): done
Solving environment: done

 

3. Run “pip install –force-reinstall scrapy“. I have pip installed over Conda. In case you haven’t installed pip or if you want to update it, first run the conda command “conda install -c conda-forge pip” (To install pip package installer inside conda via the conda-forge conda channel) or use “pip install pip” (to update your pip version), before running the “pip install –force-reinstall scrapy

(base) PS C:\Users\> pip install –force-reinstall scrapy
Collecting scrapy
Using cached Scrapy-1.8.0-py2.py3-none-any.whl (238 kB)
Collecting Twisted>=17.9.0; python_version >= “3.5”
Using cached Twisted-19.10.0-cp37-cp37m-win_amd64.whl (3.1 MB)
Collecting pyOpenSSL>=16.2.0
Using cached pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB)

 

4. Run the scrapy command to check if the above commands have resolved the problem.

(base) PS C:\Users\> scrapy
Scrapy 1.8.0 – no active project

Usage:
scrapy <command> [options] [args]

SUPPORT [[:thetqweb:]] VIA

OR

BUYMEACOFFEE.COM

[SOLVED] Scrapy Fatal error in launcher: Unable to create process using ‘”\\python.exe” “\\Conda\Scripts\scrapy.exe”‘
Forum [ Scrapy ] | thetqweb