If you're playing with scrapy
, make a note of how to get rid of strange errors.
When I was developing using ʻipython`, I suddenly got the following error
pyenv: scrapy: command not found
The `scrapy' command exists in these Python versions:
anaconda3-2019.10/envs/scrapy
By the way, I'm using ipython in a virtual environment called scrapy
with conda (I thought)
I noticed that this is a problem
--First, check the version of pyenv
with the following command. Then, it was found that they were separated as follows.
--For ʻipython you want to use here, use ʻanaconda3-2019.10 / envs / scrapy
$ pyenv versions
system
* anaconda3-2019.10 (set by /Users/*******/.pyenv/version)
anaconda3-2019.10/envs/scrapy
--Change the version of python used by pyenv as follows
$ pyenv local anaconda3-2019.10/envs/scrapy
--Next, reinstall ʻipython`
$ conda install ipython
--Restart ʻipython`
$ ipython
This worked.
Recommended Posts