When developing with ipython, scrapy can no longer be read

If you're playing with scrapy, make a note of how to get rid of strange errors.

Symptoms

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

Workaround

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

result

This worked.

Recommended Posts

When developing with ipython, scrapy can no longer be read
Anaconda Navigator can no longer be launched
When using optparse with iPython
Let's make a diagram that can be clicked with IPython
Summary of snippets when developing with Go
Be careful when running CakePHP3 with PHP7.2
[2015.02.22] Youtube-dl has been updated and can no longer be used in previous versions.
Since python is read as "Pichon", it can be executed with "Pichon" (it is a story)