Last active
March 5, 2018 16:24
-
-
Save claudiajkang/5ce4b2540038be345438f0be10d25625 to your computer and use it in GitHub Desktop.
Fedora26 KDE python3.6 -> python3.5 downgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fedora KDE 26 python3.6 -> python3.5 downgrade | |
# reference : https://tecadmin.net/install-python-3-5-on-centos/# | |
# gcc install | |
dnf install gcc wget | |
sudo cd /usr/src | |
sudo wget https://www.python.org/ftp/python/3.5.5/Python-3.5.5.tgz | |
tar xzf Python-3.5.5.tgz | |
cd Python-3.5.5 | |
# Be ready PIP complains there is no ssl support in python | |
sudo yum install openssl-devel | |
# Be ready zlib error | |
sudo yum install zlib-devel bzip2-devel sqlite sqlite-devel | |
./configure --enable-optimizations | |
sudo make -j4 altinstall | |
cd .. | |
sudo rm Python-3.5.5.tgz | |
# python3.5 version check | |
python3.5 -V | |
# pydoc3 symbolic link create (3.6 -> 3.5 change) | |
sudo unlink pydoc3 | |
sudo ln -s /usr/local/bin/pydoc3.5 pydoc3 | |
# python3 symbolic link create (3.6 -> 3.5 change) | |
sudo unlink python3 | |
sudo ln -s /usr/local/bin/python3.5 python3 | |
# pyvenv symbolic link create (3.6 -> 3.5 change) | |
sudo unlink pyvenv | |
sudo ln -s /usr/local/bin/pyvenv-3.5 pyvenv | |
# pip-3 symbolic link create (3.6-> 3.5 change) | |
sudo unlink pip-3 | |
sudo ln -s /usr/local/bin/pip3.5 pip-3 | |
# pip-3.5 symbolic link create | |
sudo ln -s /usr/local/bin/pip3.5 pip-3.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment