Atualize o python 2 para 3.8.8 no suse Linux e instale o pip3

Atualize o python 2 para 3.8.8 no suse Linux e instale o pip3

Tenho Python 2.9 em minha máquina suse-linux (SUSE Linux Enterprise Server 12 SP1). Eu atualizei para Python 3.8.8.

Quando tento instalar o pip usando

zypper install python3-pip

Diz que python3-pip não foi encontrado. Receio que o python3 não esteja instalado corretamente.

Quando executo python3.8 -m test, recebo este erro:

AttributeError: module 'posix' has no attribute '_all_'
During handling above exception, another exception occured:
SystemError: <built-in function dir> returned NULL without setting an error.

Veja como instalei o Python 3.8.8, executei estes comandos como root:

wget https://www.python.org/ftp/python/3.8.8/Python-3.8.8.tgz
tar -xvzf Python-3.8.8.tgz
cd Python-3.8.8
./configure
make
make install
export PATH=/usr/local/bin:$PATH

Eu li algumas perguntas sobre Stack Overflow, nada realmente ajudou.

Alguém poderia me ajudar a consertar isso?

Responder1

A instalação do Anaconda corrigiu o problema.

informação relacionada