How to run ipython from venv?

我怕爱的太早我们不能终老 提交于 2019-12-05 19:23:56

Did you by any chance create the venv with the --system-site-packages flag and install ipython with pip? This combination is broken in my experience (Python 3.6.2, pip 9.0.1).

Two workarounds are:

  1. Use virtualenv instead of venv,
  2. Or use easy_install instead of pip.

With pip, scripts get the wrong shebang pointing to system python.

scytale

have you activated your virtualenv and installed ipython into the virtualenv?

source path/to/venv/bin/activate
pip install ipython
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!