Pip, NumPy, and Pytorch Gone After Upgrading From Python3.6 to 3.8

117 views Asked by At

I recently decided to upgrade to python3.8 from python3.6. I attempted to do this via Conda, but I'm not sure I'm sure I did things correctly. Now when I type python into my terminal, I get python2.7. If I type python3, I get python3.8.5, but I can't use any of the modules I previously downloaded (ie NumPy). Any ideas on how I can fix this / check what's going on?

1

There are 1 answers

0
Shoaib Mirzaei On BEST ANSWER

I think it's better to reinstall all of them

here is how:

open terminal and run

sudo apt install python3-pip

after pip is installed run

pip install numpy torch torchvision