Home > other >  Small white solving: Scrapy problem, Scrapy stratproject XXX? Know how to solve the problems but don
Small white solving: Scrapy problem, Scrapy stratproject XXX? Know how to solve the problems but don

Time:09-26

Learning Scrapy today suddenly encountered this problem, a few days ago when created good, questions have been settled in baidu, but a bit don't understand why "d: \ BLD \ scrapy_1572360424769 \ _h_env \ python exe" this find python. Exe, I haven't had this disk folder
I have gave him a virtual environment created, shouldn't be in the C: \ Users \ WustAnt \ AppData \ Local \ Continuum \ anaconda3 \ env here find python exe?


Bosses under the guidance of, looked on the Internet also did not say why to appear this situation only solution

CodePudding user response:

In your current command line input:
 
Python - version

Look at the current command line terminal is found in the python you want version,

In addition to
 echo PATH % % 

Will see if, in the current PATH environment variable, not careful, contains, what you don't want to:
D: \ BLD \ scrapy_1572360424769 \ _h_env \
Such as, the relevant path,
- "if it is, then to delete the

In addition, in your code to print out
 
The import sys
Print (" sys. The executable=% s "% sys. The executable)

Said the python interpreter the full path of the
- "can determine your current python version, is indeed with what you say:
D: \ BLD \ scrapy_1572360424769 \ _h_env \ python exe
Now,

CodePudding user response:

I have gave him a virtual environment created, shouldn't be in the C: \ Users \ WustAnt \ AppData \ Local \ Continuum \ anaconda3 \ env here find python exe?

What seems to be:
You just created a virtual environment, but did not enter=start=enabled this virtual environment???????

Windows into the virtualenv virtual environment, in general is:
 venv \ Scripts \ activate bat 


So: you first make sure you entered the indeed, already in, a virtual environment

At this point, the command line the front will generally have a prompt: (venv)
To run your scrapy:
 scrapy XXX XXX 



CodePudding user response:

reference 1st floor crifan response:
you input in the command line:
 
Python - version

Look at the current command line terminal is found in the python you want version,

In addition to
 echo PATH % % 

Will see if, in the current PATH environment variable, not careful, contains, what you don't want to:
D: \ BLD \ scrapy_1572360424769 \ _h_env \
Such as, the relevant path,
- "if it is, then to delete the

In addition, in your code to print out
 
The import sys
Print (" sys. The executable=% s "% sys. The executable)

Said the python interpreter the full path of the
- "can determine your current python version, is indeed with what you say:
D: \ BLD \ scrapy_1572360424769 \ _h_env \ python exe
The

Have tried,
 
> The import sys
> Print (" sys. The executable=% s "% sys. The executable)
Sys. The executable=C: \ Users \ WustAnt \ AppData \ Local \ Continuum \ anaconda3 \ envs \ spy_env \ python exe

Path has seen it is not similar, but used the practice of virtual environment created by the same operation is no problem, feel my environment create problems

CodePudding user response:

refer to the second floor crifan response:
& gt; I have gave him a virtual environment created, shouldn't be in the C: \ Users \ WustAnt \ AppData \ Local \ Continuum \ anaconda3 \ env here find python exe?

What seems to be:
You just created a virtual environment, but did not enter=start=enabled this virtual environment???????

Windows into the virtualenv virtual environment, in general is:
 venv \ Scripts \ activate bat 


So: you first make sure you entered the indeed, already in, a virtual environment

At this point, the command line the front will generally have a prompt: (venv)
To run your scrapy:
 scrapy XXX XXX 

That is forget when I test later into the environment, or that
 
(spy_env) E: \ Demo \ Scrapy> Scrapy startproject test
Fatal error in the launcher: Unable to create the process using '" d: \ BLD \ scrapy_1572360424769 \ _h_env \ python exe "" C: \ Users \ WustAnt \ AppData \ Local \ Continuum \ anaconda3 \ envs \ spy_env \ Scripts \ scrapy exe" startproject test'

CodePudding user response:

Though don't know what happened, the scrapy unloading, use PIP reinstall again good, before is made from conda is installed
  • Related