Results 1 to 4 of 4

Thread: Resetting, removing, reinstalling Python

  1. #1
    Join Date
    Dec 2016
    Beans
    92

    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
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Resetting, removing, reinstalling Python

    what do you get from this command? dpkg -l|fgrep python
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  3. #3
    Join Date
    Dec 2016
    Beans
    92

    Re: Resetting, removing, reinstalling Python


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

    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
  •