Tengo Python 2.9 en mi máquina suse-linux (SUSE Linux Enterprise Server 12 SP1). Lo actualicé a Python 3.8.8.
Cuando intento instalar pip usando
zypper install python3-pip
Dice python3-pip no encontrado. Me temo que python3 no está instalado correctamente.
Cuando ejecuto python3.8 -m test
, aparece este error:
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.
Así es como instalé Python 3.8.8, ejecuté estos 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
He leído bastantes preguntas sobre Stack Overflow, nada realmente ayudó.
¿Alguien podría ayudarme a solucionar esto?
Respuesta1
La instalación de Anaconda solucionó el problema.