• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Remove python module installed from source code on Linux

July 21, 2014 by Sharad Chhetri Leave a Comment

The post describe about how to remove python module installed from source code on Linux.
We use python setup.py install command to install the python module from source code. The related files copied to various path. Hence we will target these files copied in various path

You must have extracted(untar) source code of that particular version of python module.

Change to extracted directory and run below given command.

cd Module-directory-name

Run the below given command.

python setup.py install --record removefiles.txt

Because of option --record , it will record the absolute path of modules files into removefiles.txt

The below given one liner , for loop will remove all files listed in removefiles.txt

for i in `cat removefiles.txt`;do rm -fr $i ;done

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Find installed and enabled apache module in Debian/Ubuntu
  2. How to list all installed python modules
  3. plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
  4. Install Nginx from source code on Ubuntu 14.04 LTS
  5. Install pagespeed module ( mod_pagespeed ) on Apache Web Server : CentOS / RHEL
  6. How to find when Operating system was installed in linux CentOS and Red Hat
  7. Find Linux Operating System architecture installed on system
  8. The best Linux and Open Source Magazine from India
  9. Python headers are required to build Mercurial but weren’t found
  10. ERROR: Module rewrite does not exist

Filed Under: Linux Tagged With: python

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

How To Find Absolute Full Path Of Command On Linux / Unix : which command

How To Get SSH Public Key Fingerprint Information

Linux: Set user password by using encrypted password in command

How to find installation date and time of rpm package

awk command to print columns from file

sed command to display text between two strings or keywords

How to install libxml2 and libxslt packages on CentOS 6.5

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form

How to download package using apt-get command in ubuntu

sed: -e expression #1, char 24: Invalid range end

How to convert float to integer number

How to protect from port scanning and smurf attack in Linux Server by iptables

4 Different commands to find system uptime in linux

How to change smtp port number 25 in postfix

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy