Results 1 to 10 of 10

Thread: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

  1. #1
    Join Date
    Sep 2015
    Beans
    13

    installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    I amn trying to install jupyter on Ubuntu 16.04, 64 bit, with pip 10.0.01.


    When I do it I get the error message:

    james@james-VirtualBox:~$ sudo pip install jupyter
    Traceback (most recent call last):
    File "/usr/bin/pip", line 9, in <module>
    from pip import main
    ImportError: cannot import name main

    I know it can be installed with pip 8.0.0, but I do not want to downgrade my version of pip. So how do I
    get this to install with pip 10.0.01?

    Any help appreciated.


    Respectfully,

    ernest-t-bass

  2. #2
    Join Date
    Aug 2013
    Beans
    3,892

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    Looks like your pip is broken. How did you install it? Uninstall all pip packages then use get-pip.py to install pip .

    If still not work it may have something to do with you being in VB https://github.com/pypa/pip/issues/5240 (not in VB, but virtuenv and docker which is kind of a VM)

  3. #3
    Join Date
    Sep 2015
    Beans
    13

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    I think that it has something to do with the pip version. It is clearly installs with pip version 8. At least I have seen videos that show jupyter software installing with pip version 8.

    I just need to know how to uninstall this pip, before I put a different version.

    Respectfully,

    ernest-t-bass

  4. #4
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    Have you tried using pip3?

  5. #5
    Join Date
    Sep 2015
    Beans
    13

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    i am quite new to python. I do not know what you mean. How do I install pip3?

    I will try pip3 if can install it.

    Respectfully,

    ernest-t-bass

  6. #6
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    There is pip for python2 and pip3 for python3.
    What version python are you running?

    python --version

  7. #7
    Join Date
    Sep 2015
    Beans
    13

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    I am running python version Python 2.7.15. That is why i do not want to install pip3. I believe it is for python3. I am running an earlier version.

    Respectfully,

    ernest-t-bass
    Last edited by James_M._Yunker; 4 Weeks Ago at 02:03 PM.

  8. #8
    Join Date
    Aug 2013
    Beans
    3,892

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    Quote Originally Posted by James_M._Yunker View Post
    I think that it has something to do with the pip version. It is clearly installs with pip version 8. At least I have seen videos that show jupyter software installing with pip version 8.

    I just need to know how to uninstall this pip, before I put a different version.

    Respectfully,

    ernest-t-bass
    Code:
    sudo pip uninstall pip
    This would remove it, then reinstall the deb package

    Code:
    sudo apt install --reinstall python-pip
    Now when you use pip there will be a warning that you are not using the latest pip, just ignore it.

    P.S If you are new to python better do python3, py2 is mainly for maintaining legacy codes. All new codes should be written in py3.
    Last edited by monkeybrain20122; 4 Weeks Ago at 03:54 PM.

  9. #9
    Join Date
    Sep 2015
    Beans
    13

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    That worked. I had to use sudo's -H option because I had initially some directory ownership warnings. What does the sudo -H option do?

    Also, how do I now install jupyter notebook.

    Thanks for all of your help.

    Respectfully,

    ernest-t-bass

  10. #10
    Join Date
    Aug 2013
    Beans
    3,892

    Re: installing jupyter on ubuntu 16.04, 64 bit, with pip 10.0.01

    Code:
    sudo pip install -U jupyter

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •