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: