Score:0

Upgrade python 2 to 3.8.8 on suse Linux and Install pip3

ve flag

I have Python 2.9 on my suse-linux machine (SUSE Linux Enterprise Server 12 SP1). I have upgraded it to Python 3.8.8.

When I try to install pip using

zypper install python3-pip

It says python3-pip not found. I am afraid that python3 is not installed properly.

When I run python3.8 -m test, I get this 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.

Here's how I installed Python 3.8.8, I ran these commands as 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

I have read quite a few questions on Stack Overflow, nothing really helped.

Could someone help me fix this?

Score:0
ve flag

Installing Anaconda fixed the issue.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.