[IPython-dev] Trouble installing IPython3 into dist-packages

Dong Ta dongta.hds at gmail.com
Thu Nov 13 03:38:26 EST 2014


Thanks. This

grep -r dongta /usr/local/lib/python*

, in addition to repeated pip uninstall ipython, solved the problem.

I'm still scratching my head and reading stuffs about Python packing to
understand why.

DT


On Wed, Nov 12, 2014 at 10:17 PM, MinRK <benjaminrk at gmail.com> wrote:

> If you have done a pip install -e or setup.py develop at some point,
> there may be an egg-link or entry in easy-install.pth pointing to that
> directory. Repeated pip uninstall ipython until it finds no ipython to
> uninstall *may* remove it, or you may need to go hunting for it yourself.
> You can look for it with:
>
> grep -r dongta /usr/local/lib/python*
> grep -r dongta ~/.local/lib/python*
>
> Yay, Python packaging!
>
> -MinRK
>>
> On Wed, Nov 12, 2014 at 10:07 PM, Dong Ta <dongta.hds at gmail.com> wrote:
>
>> Thank you. I've just tried
>>
>> sudo pip3 install file://$PWD#egg=ipython[notebook] --upgrade
>> --force-reinstall
>>
>>
>> which installed successfully. However, the original problem remains, i.e.
>> it doesn't install IPython package into /usr/lib/python3/dist-packages
>>
>> In [1]: from IPython import core
>>
>> In [2]: ??core
>> Type:        module
>> String form: <module 'IPython.core' from
>> '/home/dongta/ipython/IPython/core/__init__.py'>
>> File:        /home/dongta/ipython/IPython/core/__init__.py
>> Docstring:   <no docstring>
>>
>>
>> although the entry point is installed correctly, i.e.
>>
>> ~$ which ipython
>> /usr/local/bin/ipython
>>
>>
>>
>> On Wed, Nov 12, 2014 at 5:06 PM, Thomas Kluyver <takowl at gmail.com> wrote:
>>
>>> On 12 November 2014 16:53, Dong Ta <dongta.hds at gmail.com> wrote:
>>>
>>>> Without -e, the command fails. Here's the full stdout/stderr:
>>>
>>>
>>> I am told that the official spelling of pip install ".[notebook]" is:
>>>
>>> pip install file://$PWD#egg=ipython[notebook]
>>>
>>> *sigh* - Python packaging tools never stop finding new ways to suck.
>>>
>>> Thomas
>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141113/1db07f9b/attachment.html>


More information about the IPython-dev mailing list