I checked the installed modules with help("modules")
I've tried uninstalling a module I did not want with pip uninstall somemodule
, but I got this warning:
WARNING: Skipping somemodule as it is not installed.
In pip's documentation of pip uninstall it says in the description: Uninstall packages.
However in this answer it says that running pip uninstall somemodule
will work.
Question:
Can
pip
uninstall modules or only packages? I'm very confused.Will deleting the
.py
file in its directory, completely uninstall it, or is it a bad practice?
EDIT:
I have 2 versions of python installed. I ran all commands in python 3.9.1
py --version
givesPython 3.9.1
, andpip --version
givespip 21.0.1 from c:\...\python\python39\lib\site-packages\pip (python 3.9)
I've created a
venv
at some point. I deleted the folder shortly after creating thevenv
.
py -m pip uninstall somemodule
also did not work
somemodule
is theantigravity
module that comes with python