简体   繁体   中英

Installed Python 3.10 on Ubuntu: pip not working

I have installed Python 3.10 as python3 from source using these commands , If I create a virtual environment using:

python3 -m venv env

It successfully creates the virtual environment but installing using PIP gives an error. Previously the error was SSL but I re-installed SSL dependencies again using this and Python. It stopped giving SSL errors but still, it wasn't able to install a package using pip. It gave the error no matched package. It also says the pip is not the latest. If I try to update it the process follows but only the old version is installed not the new. Currently there are two python versions installed on my OS.

>> which python
/usr/bin/python
>> which pip
/home/user/.local/bin/pip
>> which python3
/usr/local/bin/python3
>> which pip3
/home/user/.local/bin/pip3

If I follow all the stuff using python (which is 3.8.10), everything works fine.

The issue was with TensorFlow. I was trying to install TensorFlow with Python 3.10. TensorFlow currently doesn't support Python 3.10 therefore, it was showing the error of not matching any distribution . For other packages, it just worked fine. It currently supports only up to Python 3.9 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM