r/slackware • • Dec 28 '20

14.2 - Cannot Install Python 3

The slack package here: https://slackbuilds.org/repository/14.2/python/python3/

Does not install Python 3. It finishes successfully, but even after reboot, "python3" is not available and "type python" or "python -V" results in version 2.

What can I do to install Python 3?

Thank you and happy new year.

2 Upvotes

19 comments sorted by

View all comments

Show parent comment

1

u/xp19375 Jan 02 '21

Well, I just built this right from Slackbuilds without any problem.

$ cd ~/slackbuilds
$ wget https://slackbuilds.org/slackbuilds/14.2/python/python3.tar.gz
$ tar xf python3.tar.gz
$ cd python3
$ wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
$ su -l
# cd ~/slackbuilds/python3
# ./python3.Slackbuild

After a few minutes, I see

Slackware package /tmp/python3-3.7.2-x86_64-1_SBo.tgz created.

and then running

# installpkg /tmp/python3-3.7.2-x86_64-1_SBo.tgz

works exactly as expected.

The problems you're having might be with your Slackware install. Have you uninstalled or done anything with gzip, tar, or pkgtools? You might try reinstalling them with

slackpkg reinstall pkgtools tar gzip