Open RokeJulianLockhart opened 2 years ago
I believe that the similarity of this problem to "http://gitlab.com/postmarketOS/pmbootstrap/-/issues/2127" may demonstrate that pip is operating erroneously. Are you able to confirm this?
[BEEDELLROKEJULIANLOCKHART@BEEDELLROKEJULIANLOCKHART /]$ su
[root@BEEDELLROKEJULIANLOCKHART /]# script -a
Script started, output log file is 'typescript'.
[root@BEEDELLROKEJULIANLOCKHART /]# pip uninstall tg
Found existing installation: tg 0.19.0
Uninstalling tg-0.19.0:
Would remove:
/usr/local/bin/tg
/usr/local/lib/python3.10/site-packages/tg-0.19.0.dist-info/*
/usr/local/lib/python3.10/site-packages/tg/*
Proceed (Y/n)? Y
Successfully uninstalled tg-0.19.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
[root@BEEDELLROKEJULIANLOCKHART /]# exit
exit
Script done.
[root@BEEDELLROKEJULIANLOCKHART /]# exit
exit
[BEEDELLROKEJULIANLOCKHART@BEEDELLROKEJULIANLOCKHART /]$ pip install tg
Defaulting to user installation because normal site-packages is not writeable
Collecting tg
Downloading tg-0.19.0-py3-none-any.whl (73 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.6/73.6 KB 144.2 kB/s eta 0:00:00
Requirement already satisfied: python-telegram==0.15.0 in /usr/local/lib/python3.10/site-packages (from tg) (0.15.0)
Installing collected packages: tg
Successfully installed tg-0.19.0
[BEEDELLROKEJULIANLOCKHART@BEEDELLROKEJULIANLOCKHART /]$ pip uninstall tg
Found existing installation: tg 0.19.0
Uninstalling tg-0.19.0:
Would remove:
/home/BEEDELLROKEJULIANLOCKHART/.local/bin/tg
/home/BEEDELLROKEJULIANLOCKHART/.local/lib/python3.10/site-packages/tg-0.19.0.dist-info/*
/home/BEEDELLROKEJULIANLOCKHART/.local/lib/python3.10/site-packages/tg/*
Proceed (Y/n)? Y
Successfully uninstalled tg-0.19.0
[BEEDELLROKEJULIANLOCKHART@BEEDELLROKEJULIANLOCKHART /]$ pip3 install tg
Defaulting to user installation because normal site-packages is not writeable
Collecting tg
Using cached tg-0.19.0-py3-none-any.whl (73 kB)
Requirement already satisfied: python-telegram==0.15.0 in /usr/local/lib/python3.10/site-packages (from tg) (0.15.0)
Installing collected packages: tg
Successfully installed tg-0.19.0
[BEEDELLROKEJULIANLOCKHART@BEEDELLROKEJULIANLOCKHART /]$ tg
bash: /usr/local/bin/tg: No such file or directory
[BEEDELLROKEJULIANLOCKHART@BEEDELLROKEJULIANLOCKHART /]$
Did this problem occur because I did not adhere to "WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager."?