Coder Social home page Coder Social logo

novasush / build-python-from-source Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 8.0 3 KB

Shell script for building python from source

Home Page: https://towardsdatascience.com/building-python-from-source-on-ubuntu-20-04-2ed29eec152b

License: MIT License

Shell 100.00%
python python3 source-code build build-tools linux shell shell-script ubuntu ubuntu1804 ubuntu1604 ubuntu2004 ubuntu-server ubuntu1404 shellscript bash-script bash bashrc bashrc-configs python-3

build-python-from-source's Introduction

build-python-from-source

Shell script for building python from source...

Steps for running:

Step 1: Download shell file from terminal

wget https://github.com/novasush/build-python-from-source/blob/master/build_python.sh

Step 2: Give executable permission to build_python.sh

chmod +x build_python.sh

Step 3: Run file with sudo permission

sudo ./build_python.sh

Step 4: You will be prompted for specifying build location enter full path where you want to build python.

Enter Full Path beginning from '/': /usr/src

Path selected by you is: /usr/src

(Optional)

The python version i have used in this file is python3.6.9 if you wish to change version, edit the file and update following lines with the python version you wish to install in build_python.sh

#line 46
wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz

#line 48
tar xzf Python-3.6.9.tgz

#line 50
cd Python-3.6.9

#line 59
python3.6 -V

#line 77
python3.6 get-pip.py

#line 81
pip3.6 -V

#line 89 and 90
echo 'alias python=python3.6' >> ~/.bashrc
echo 'alias pip=pip3.6' >> ~/.bashrc

build-python-from-source's People

Contributors

novasush avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.