S
S
shell_guy2021-11-15 15:05:57
Python
shell_guy, 2021-11-15 15:05:57

How to install python3 and pip3 on debian10?

Hello
I compiled from python 3.8.7 sources,
but I can't install pip via
pip3 install --upgrade pip
When I put apt install python3-pip -y, then python3.7 is installed on top of what is not needed
How to solve?
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vadim Shatalov, 2021-11-15
@netpastor

Look aside https://github.com/pyenv/pyenv

A
AVKor, 2021-11-15
@AVKor

Compiled from python 3.8.7 sources

You don't have to do that.
When I put apt install python3-pip -y then python3.7 is put on top

It's time to update the OS version.
Work correctly with Python versions with pyenv and pipenv.

D
Daiclo, 2021-11-15
@Daiclo

If you have debian 10 stable, what is wrong with the default version of python3 (3.9.2-3)?

K
krinbin, 2021-11-15
@krinbin

After make install, write the necessary alias in bash
alias python3="PATH to bin - python3.10"
alias pip3="PATH to bin - /bin/pip3.10"
or work with virtual environments

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question