IPython import failure and python sys.path in general

前端 未结 9 1546
清酒与你
清酒与你 2021-01-17 10:35

I\'m following this post to make one ipython rule all the virtualenvs.

From what I understand, the main idea of the post is that when in a virtualenv, ipython can no

9条回答
  •  温柔的废话
    2021-01-17 11:14

    I had the same problem, in my case the cause of it was that the directory: /usr/lib/python2.7/dist-packages was not added to the path when the virtual environment was created (I would like to know why)

    In my case the following in the terminal solved the problem:

    workon 'your_environment_here'
    add2virtualenv /usr/lib/python2.7/dist-packages
    

    Note: This assumes you are using virtualenvwrapper

提交回复
热议问题