Uninstall Python 3.5.2 from Redhat Linux
<p>Linux is already preinstalled with Python 2.7, however I installed Python 3.5.2 thinking that I need it but actually I don't. So I want to safely and completely remove it from the system, how can I do it? </p>

<p>I previously installed Python 3.5.2 using the commands below</p>

<pre><code>wget https://www.python.orf.ftp/python/3.5.2/Python-3.5.2.tgz
tar -xvf Python-3.5.2.tgz
cd Python-3.5.2.tgz
./configure
make install
ls /usr/local/bin      //python 3.5.2 is stored at this location
</code></pre>

<p>There should be <code>uninstall</code> script but python really does not have it. If you didn't change any options from the firstplace( i mean config and make) you can do this one </p>

<p>//<em>be careful with</em> <strong>-rf</strong>//</p>

<pre><code>sudo rm -rf /usr/local/bin/python3* /usr/local/bin/pydoc3 /usr/local/lib/python3.1 /usr/local/include/python3.1      /usr/local/lib/pkgconfig/python3.pc /usr/local/lib/libpython3.1.a
</code></pre>

python linux redhat uninstall package-management