11
downloaded a package with wget
, unzipped and downloaded the folder, used the command:
python setup.py install
It ran without errors, but now I no longer use this program, what is the correct way to uninstall the program?
11
downloaded a package with wget
, unzipped and downloaded the folder, used the command:
python setup.py install
It ran without errors, but now I no longer use this program, what is the correct way to uninstall the program?
9
As can be seen in that SOEN response, you need to remove the files manually. If you do not know what these files are, you can use the parameter --record
during the setup to list these files, as in the following example
python setup.py install --record files.txt
This will generate a file files.txt
, which will list all the files. If you are on Windows, just delete them from the directory manually. If you are on linux, you can use the following shell command:
cat files.txt | xargs rm -rf
In case you have the pip
installed, based in that other SOEN response, you can use it to try to uninstall it in a simpler way. For this you can use the command:
pip freeze
This will list all packages that Pip has identified that are installed. If he has found the package you want to uninstall, just type in:
pip uninstall o.nome.do.pacote.que.voce.quer.remover
If it requests a confirmation to delete these packages, it means that everything went well, just confirm the uninstallation.
Browser other questions tagged python linux
You are not signed in. Login or sign up in order to post.
the first command gave error: option --record not recognized
– SneepS NinjA
Spoke the
install
, I’ll edit by correcting the answer.– Felipe Avelar