Last active
May 11, 2018 13:36
-
-
Save thocell/3dfcff7d09560357c9c6a9b453e0d6ed to your computer and use it in GitHub Desktop.
Install python 3.6.4 on ubuntu 14.04
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
**** | |
* For the Ubuntu 14.04 system, it is not easay to install python 3.6 and make pip3 work using the python3.6.4 path. If installed from the repository with ppa:jonathonf/python-3.6, | |
* there are always problems to use pip3 to call python 3.6.4. So this gist will help to solve such problems. | |
****** | |
sudo apt-get install build-essential checkinstallsudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | |
cd ~ | |
sudo wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz | |
sudo tar xzf Python-3.6.4.tgz | |
cd Python-3.6.4 | |
sudo ./configure --enable-optimizations | |
sudo make altinstall | |
sudo ln -s /usr/local/bin/python3.6 /usr/bin/python3.6 | |
sudo -H pip3.6 install --upgrade pip | |
python3.6 -V # check python version | |
pip3.6 -V # check pip3.6 version | |
pip3 -V # check pip3.6 versio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment