how to remove python 3.4.4 in ubuntu 14.04

9,993

After running make -n altinstall and doing a bit of processing1, the relevant paths are:

/usr/local/bin/python3.4
/usr/local/include/python3.4
/usr/local/lib/libpython3.4
/usr/local/lib/python3.4
/usr/local/share/man/man1/python3.4

Some of these maybe temporary - only used during installation and deleted after finishing it. So, you might not find some of these. Delete the rest.


1 I just ran:

make -n altinstall | grep -v rm | grep -Po '/usr/local[^[:space:]]*?python3.4' | sort -u

This filters out rm commands, and then prints only the paths in /usr/local (the default location picked by ./configure) that end in python3.4 and removes duplicated entries.

Share:
9,993

Related videos on Youtube

박주현
Author by

박주현

Updated on September 18, 2022

Comments

  • 박주현
    박주현 almost 2 years

    I installed python 3.4.4 in ubuntu 14.04, but I want to remove it.

    when I open terminal and type python3.4 -V then the output is the following.

    Python 3.4.4

    when I installed, I referenced this web-site "i referenced this website"

    I want to remove python 3.4.4 how to do? I am linux newbie please help me.

    when i enter /usr/src/Python-3.4.4 directory and type make uninstall or sudo make uninstall then output message is that

    make *** no rule to make target uninstall'. stop

    I think that method isn't working.

    • muru
      muru over 8 years
      How did you install it?
    • 박주현
      박주현 over 8 years
    • muru
      muru over 8 years
    • 박주현
      박주현 over 8 years
      oh thank you. Could I ask one more? now in /usr/src/ directory, I have Python-3.4.4.tgz file and Python-3.4.4 directory. According to solution that you suggested, I enter Python-3.4.4 directory and need to type sudo apt-get uninstall, right??
    • muru
      muru over 8 years
      Ah, never mind. Python's Makefile doesn't have an uninstall option. You'll have to run make -n altinstall, see which files were installed and delete them manually.
    • 박주현
      박주현 over 8 years
      should I have to work in /usr/src/Python-3.4.4/ directory??
    • muru
      muru over 8 years
      Yes, run make -n altinstall in /usr/src/Python-3.4.4/. You will see a list of commands and paths. Delete all the paths that mention python3.4.
    • 박주현
      박주현 over 8 years
      can you teach me a little more? so many commands and paths are shown. but I don't know how remove them. I want to show you make -n altinstall output. do you know how to upload file? I hope i will be given how to do through some examples..
    • Byte Commander
      Byte Commander over 8 years
      Make sure you never accidentally remove the preinstalled Python 3 version! many tools like e.g. most package managers will not work any more if you remove that. (Just a warning to be careful when it comes to removing Pythons before it's too late. I already advised far too many people to reinstall their system because of that in the last weeks. :-/)