Thursday, 20 January 2022

Calling `pip uninstall` from the source folder where `setup.py install` was called

If I clone a repos that uses setuptools, I can install it using python3 setup.py install --user.

For example:

git clone https://github.com/pybliometrics-dev/pybliometrics
cd pybliometrics
python3 setup.py install --user

However, I cannot pip uninstall it anymore. In fact:

$ pip3 uninstall pybliometrics
Found existing installation: pybliometrics 3.2.1.dev2
Can't uninstall 'pybliometrics'. No files were found to uninstall.

I have to change directory for the uninstallation command to be successful. Then change directory back if I want to reinstall it.

Why is that?

How can I uninstall from the same folder that I used to install it?

Here is the output of pip show as asked in the comment:

$ pip show -f pybliometrics
Name: pybliometrics
Version: 3.2.1.dev2
Summary: Python-based API-Wrapper to access Scopus
Home-page: https://pybliometrics.readthedocs.io/en/stable/
Author: 'John Kitchin and Michael E. Rose
Author-email: Michael.Ernst.Rose@gmail.com
License: MIT
Location: /run/media/MYNAME/MYID/data/progetti_miei/pybliometrics
Requires: pbr, requests, simplejson, tqdm
Required-by: 
Files:
Cannot locate RECORD or installed-files.txt


from Calling `pip uninstall` from the source folder where `setup.py install` was called

No comments:

Post a Comment