From 5f556f9898ae2e5d19512403d81f6b42b9d62d4a Mon Sep 17 00:00:00 2001 From: Pragati Pandey <53970867+pragati2112@users.noreply.github.com> Date: Sun, 27 Aug 2023 13:23:07 +0530 Subject: [PATCH 1/2] Update README.md Added instrunctions to run application using pyenv with virtual environments. pyenv is for managing multiple python versions. --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index 4d927287..89687afb 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,45 @@ Follow these steps to set up the environment and run the application. source env/bin/activate ``` + **OPTIONAL (if anybody is using pyenv)** + + Run application with pyenv (Refer this link - https://realpython.com/intro-to-pyenv/#installing-pyenv) + + - Build dependencies (on ubuntu) + ``` + sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python openssl + ``` + ``` + + sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev libncurses-dev + + sudo apt-get install python-tk python3-tk tk-dev + + sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev + + ``` + - pyenv installer + ``` + curl https://pyenv.run | bash + ``` + - Install desired python version + ``` + pyenv install -v 3.11.0 + ``` + + - pyenv with vurtual enviroment + ``` + pyenv virtualenv 3.11.0 myenv_name + ``` + + - Activate virtualenv with pyenv + ``` + pyenv activate myenv_name + ``` + + + + 5. Install Dependencies: ```bash From 852ca0de77060473a5d50a60b2e6f943b332f1fe Mon Sep 17 00:00:00 2001 From: Pragati Pandey <53970867+pragati2112@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:47:51 +0530 Subject: [PATCH 2/2] Update README.md change myenv_name to venv --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 89687afb..61864066 100644 --- a/README.md +++ b/README.md @@ -122,17 +122,14 @@ Follow these steps to set up the environment and run the application. - pyenv with vurtual enviroment ``` - pyenv virtualenv 3.11.0 myenv_name + pyenv virtualenv 3.11.0 venv ``` - Activate virtualenv with pyenv ``` - pyenv activate myenv_name + pyenv activate venv ``` - - - 5. Install Dependencies: ```bash