I installed a .whl package locally using pip:
pip install package_name.whl
Now, when running
pip list
The package appears with the relative version installed.
I checked if pip is linked to the right version of python, i used:
pip -V
And this is the answer:
pip 21.3.1 from /home/username/.local/lib/python3.8/site-packages/pip (python 3.8)
When running python on the shell:
python3.8
And i try to import the package this is the answer:
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import package_name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'package_name'
Also in python3.8 when i run:
help("modules")
The package_name module in fact does not appear. So? what is happening?
I have also 3.5 and 2.7 python version, and to be sure if it is installed in other versions i made the same thing in the shell and no one could import the package or locate it. Also i tried to install the .whl file with:
python3.8 -m pip install package_name.whl
Then in the output of
python3.8 -m pip list
the package_name is there. But again could not import into the shell of python3.8 or even locate it when running again
help("modules")