Skip to content

Instantly share code, notes, and snippets.

@neerajgupta2407
Last active July 14, 2020 13:38
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 neerajgupta2407/e651c1f815b2f27ba1ff8ba7e507158b to your computer and use it in GitHub Desktop.
Save neerajgupta2407/e651c1f815b2f27ba1ff8ba7e507158b to your computer and use it in GitHub Desktop.
Steps to install mod_wsi for python 3.7
## Ref: https://phoenixnap.com/kb/how-to-install-python-3-ubuntu
1. sudo add-apt-repository ppa:deadsnakes/ppa
2. sudo apt update
3. sudo apt install python3.7
4. python ––version
1. cd ~
2. wget https://github.com/GrahamDumpleton/mod_wsgi/archive/4.7.1.tar.gz. # get latest version from github releases.
3. tar xvfz 4.7.1.tar.gz
4. cd mod_wsgi-4.7.1
# check python3 version
5. which python3 or which python 3.7. # output -> /usr/bin/python3.7
6. ./configure --with-python=/usr/bin/python3.7
7. sudo make
8. sudo make install
## Tada..Mod_wsgi installed for python3.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment