Skip to content

Instantly share code, notes, and snippets.

@abhijitmamarde
Last active September 10, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhijitmamarde/a2f15fdfd778bcb10dd6ca2e8e707a44 to your computer and use it in GitHub Desktop.
Save abhijitmamarde/a2f15fdfd778bcb10dd6ca2e8e707a44 to your computer and use it in GitHub Desktop.
installing python3 on ubuntu18.04

run using user with root access or append sudo before each command:

$ apt update
$ apt install software-properties-common
# optional: required for installing pip packages which needs compiler. ex: uwsgi
$ apt-get install build-essential
$ add-apt-repository ppa:deadsnakes/ppa

$ apt install python3.7

# optional: required for installing pip packages which needs compiler. ex: uwsgi
$ apt install python3.7-dev

$ apt-get install python3.7-venv
$ python3.7
Python 3.7.4 (default, Jul  9 2019, 15:11:16)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

$ python3.7 -m venv .py374env
$ source .py374env/bin/activate
(.py3742env) $ pip install requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment