Calling IPython from a virtualenv

前端 未结 8 1998
既然无缘
既然无缘 2020-12-12 13:34

I understand that IPython is not virtualenv-aware and that the most logical solution to this is to install ipython in each virtualenv seperately using

pip i         


        
8条回答
  •  佛祖请我去吃肉
    2020-12-12 14:04

    As others mentioned, recent versions of ipython are virtualenv aware, so you can use your virtualenv bin activate script to run ipython using your virtualenv, e.g.

    $ source venv/bin/activate
    (venv) $ ipython
    WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
    

提交回复
热议问题