How to uninstall a module installed using setup.py

Introduction

When installing external modules using setup.py

python setup.py install

Because I installed it like this

python setup.py uninstall

I thought I could uninstall it like this, but it didn't work.

How to uninstall

First, write out the list of files created during installation

python setup.py install --record files.txt

Then delete the files on the list


cat files.txt | xargs rm -rf

This completes the uninstallation

reference

http://stackoverflow.com/questions/1550226/python-setup-py-uninstall

Recommended Posts

How to uninstall a module installed using setup.py
How to draw a graph using Matplotlib
How to install a package using a repository
How to code a drone using image recognition
How to upload to a shared drive using pydrive
How to write a GUI using the maya command
How to set up a Python environment using pyenv
How to hold a hands-on seminar using Jupyter using docker
How to make a Python package using VS Code
How to execute a command using subprocess in Python
How to call a function
How to uninstall pyenv itself
How to hack a terminal
How to import NoteBook as a module in Jupyter (IPython)
How to transpose a 2D array using only python [Note]
How to generate a query using the IN operator in Django
How to import NoteBook as a module in Jupyter (IPython)
How to install python using anaconda
How to make a Japanese-English translation
How to use the optparse module
How to put a symbolic link
To add a C module to MicroPython ...
How to make a slack bot
How to use Python's logging module
How to create a Conda package
How to make a crawler --Advanced
How to make a recursive function
How to make a deadman's switch
How to create a Dockerfile (basic)
[Blender] How to make a Blender plugin
How to delete a Docker container
How to make a crawler --Basic
How to use the ConfigParser module
How to create a config file
How to build a LAMP environment using Vagrant and VirtulBox Note
How to paste a CSV file into an Excel file using Pandas
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
How to format a table using Pandas apply, pivot and swaplevel
How to save only a part of a long video using OpenCV
How to update a Tableau packaged workbook data source using Python
How to create a CSV dummy file containing Japanese using Faker
How to POST to a specified channel without using Slack's Incoming WebHooks
How to generate a new loggroup in CloudWatch using python within Lambda
How to create a clone from Github
Tweet in Chama Slack Bot ~ How to make a Slack Bot using AWS Lambda ~
How to divide and process a data frame using the groupby function
How to build a sphinx translation environment
How to create a git clone folder
Qiita (1) How to write a code name
[Python] How to display random numbers (random module)
How to make a model for object detection using YOLO in 3 hours
python3 How to install an external module
[Python] How to convert a 2D list to a 1D list
How to set up SVM using Optuna
[Colab] How to copy a huge dataset
Create a graph using the Sympy module
How to get a value from a parameter store in lambda (using python)
[Ubuntu] How to execute a shell script
How to get a stacktrace in python
[Python] How to read a csv file (read_csv method of pandas module)
How to get a sample report from a hash value using VirusTotal's API