Results 1 to 4 of 4

Thread: Resetting, removing, reinstalling Python

  1. #1
    Join Date
    Dec 2016
    Beans
    84

    Resetting, removing, reinstalling Python

    On Ubuntu (Mate) 18.04.1 LTS

    My PYTHONPATH is

    :/home/jim/ytini/yt-conda/bin:/home/jim/ytini/yt-conda/sbin
    $python -V

    returns

    Python 2.7.16 :: Anaconda, Inc.

    So my question is, how do I start from a blank slate. ie remove ALL Python installs and reinstall a new version or Python 2.7?

  2. #2
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    1,373
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Resetting, removing, reinstalling Python

    what do you get from this command? dpkg -l|fgrep python
    What do you call someone who speaks 3 languages? Trilingual.
    What do you call someone who speaks 2 languages? Bilingual.
    What do you call someone who speaks 1 language? American.

  3. #3
    Join Date
    Dec 2016
    Beans
    84

    Re: Resetting, removing, reinstalling Python


  4. #4
    Join Date
    Mar 2011
    Beans
    1,510

    Re: Resetting, removing, reinstalling Python

    Don't uninstall python, your system relies heavily on it, and you will get a nasty surprise when you try to install anything! The python you want to remove looks like a local copy. Try unsetting the PYTHONPATH and see if the result lets the system version be used. /usr/bin/python is just a link to /usr/bin/python2.7, so if your /usr/bin is before your home dir in your PATH, the system python should run with the 'python" command

Tags for this Thread

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
  •