I installed alernative version of python (3.8.10) from source, i needed it to use in virtual environment. But when i use pip3
/usr/local/bin/python3 -m pip3
it says
/usr/local/bin/python3: No module named pip3
also
/usr/local/bin/python3 -m pip #works perfectly fine
same goes with /usr/local/bin/python3.8
how to fix it? (btw, just using pip3 from console works fine)
CodePudding user response:
It's either
pip3 install packages
because the script is named pip3
; or
/usr/local/bin/python3 -m pip install packages
as the package to run with python -m
is called pip
. But not both, so it's not
python3 -m pip3 install packages
as there is no package pip3
.
Also try
/usr/local/bin/pip3 install
If it's what you want put /usr/local/bin/
in front of your $PATH
and you can run the script with just pip3
.
CodePudding user response:
You can try with this only inside your virtualenv.
pip install package_name