Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install python modules when installed using make altinstall?

Tags:

python

pip

I'm currently on Debian GNU/Linux and I have python2.7 and python3.5 pre-installed so I then again installed python3.8 with make altinstall.

Now I have two versions of python3 and python3.8. Then I installed tensorflow module using pip3 install tensorflow-gpu and when I opened python3.8 and tried to import tensorflow It's says module not found.

If that's the case how can I install modules for python3.8?

like image 704
user_12 Avatar asked Dec 02 '25 00:12

user_12


1 Answers

https://docs.python.org/3/installing/index.html Mention here how to install respective python library.

python2   -m pip install SomePackage  # default Python 2
python2.7 -m pip install SomePackage  # specifically Python 2.7
python3   -m pip install SomePackage  # default Python 3
python3.8 -m pip install SomePackage  # specifically Python 3.8
like image 128
aviboy2006 Avatar answered Dec 04 '25 13:12

aviboy2006



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!