pyg-lib icon indicating copy to clipboard operation
pyg-lib copied to clipboard

recent changes to pip installation gives weird error when uninstalling

Open puririshi98 opened this issue 2 years ago • 4 comments

😵 Describe the installation problem

so if I have an old installation of pyg-lib I can uninstall it:

root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip uninstall -y pyg-lib
Found existing installation: pyg-lib 0.1.0
Uninstalling pyg-lib-0.1.0:
  Successfully uninstalled pyg-lib-0.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Then I try to install from source:

root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip install -e .
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Obtaining file:///opt/pyg/pyg-lib
Installing collected packages: pyg-lib
  Running setup.py develop for pyg-lib

After this I cannot uninstall it:

root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip uninstall -y pyg-lib
Found existing installation: pyg-lib 0.1.0
Can't uninstall 'pyg-lib'. No files were found to uninstall.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@8239e7e0e1e1:/opt/pyg/pyg-lib# pip show pyg-lib
Name: pyg-lib
Version: 0.1.0
Summary: Low-Level Graph Neural Network Operators for PyG
Home-page: https://github.com/pyg-team/pyg-lib
Author: PyG Team
Author-email: [email protected]
License: UNKNOWN
Location: /opt/pyg/pyg-lib
Requires: 
Required-by:

Notice how instead of pyg-lib-0.1.0, it is not showing as pyg-lib 0.1.0 and then saying there is nothing to uninstall

Environment

  • pyg-lib version: pip install -e . from master
  • OS: linux

puririshi98 avatar Dec 05 '22 21:12 puririshi98

Thanks for reporting, but it is hard for me to give any guidance here. What happens if you run pip uninstall --verbose pyg-lib?

rusty1s avatar Dec 06 '22 07:12 rusty1s

root@3d587183e58e:/opt/pyg/pyg-lib# pip uninstall --verbose pyg-lib
Found existing installation: pyg-lib 0.1.0
Can't uninstall 'pyg-lib'. No files were found to uninstall.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

same issue unfortunately, not much insight from --verbose.😕

puririshi98 avatar Dec 07 '22 19:12 puririshi98

Can it have to do with using system Python? What happens if you run with sudo?

rusty1s avatar Dec 08 '22 08:12 rusty1s

i am doing all of this in a docker contaienr where there is no concept of sudo since u have full sudo access to everything.

root@c155cc9aabc0:/opt/pyg/pyg-lib# python3 -m pip uninstall -y pyg-lib; sudo pip install -e .; sudo pip uninstall -e .
Found existing installation: pyg-lib 0.1.0
Uninstalling pyg-lib-0.1.0:
  Successfully uninstalled pyg-lib-0.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
bash: sudo: command not found
bash: sudo: command not found

not sure what else to investigate or do. its not really a blocker for me in anyway since i just uninstall by exiting the docker and reentering a fresh one and then uninstalling that one since the install in my docker is fine. feel free to close the issue if u want or leave it open, i dont mind either way.

puririshi98 avatar Dec 09 '22 19:12 puririshi98