Update setup/Debian_and_Ubuntu_setup.txt
Browse files
setup/Debian_and_Ubuntu_setup.txt
CHANGED
|
@@ -1,39 +1,39 @@
|
|
| 1 |
-
Instructions to setup your virtual environment using pyenv on Debian/Ubuntu:
|
| 2 |
-
|
| 3 |
-
1. Install the necessary changes with this command:
|
| 4 |
-
sudo apt install -y make build-essential libssl-dev zlib1g-dev \
|
| 5 |
-
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
|
| 6 |
-
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl \
|
| 7 |
-
git
|
| 8 |
-
|
| 9 |
-
2. Install pyenv:
|
| 10 |
-
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
| 11 |
-
|
| 12 |
-
3. Add the pyenv to your $PATH (if you use a different shell than bash you have to change ~/.bashrc accordingly):
|
| 13 |
-
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
|
| 14 |
-
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
|
| 15 |
-
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
|
| 16 |
-
|
| 17 |
-
4. Install Python Version 3.11.0:
|
| 18 |
-
pyenv install 3.11.0
|
| 19 |
-
|
| 20 |
-
5. Clone this repository:
|
| 21 |
-
git clone https://huggingface.co/spaces/GeorgiosIoannouCoder/cuny-tech-prep-tutorial-
|
| 22 |
-
|
| 23 |
-
6. Navigate to the cloned repository folder:
|
| 24 |
-
cd cuny-tech-prep-tutorial-
|
| 25 |
-
|
| 26 |
-
7. Use the installed Python version in the cloned repository folder:
|
| 27 |
-
pyenv local 3.11.0
|
| 28 |
-
|
| 29 |
-
8. Create virtual environment in the cloned repository folder:
|
| 30 |
-
python -m venv .cuny-tech-prep-tutorial-
|
| 31 |
-
|
| 32 |
-
9. Activate the virtual environment:
|
| 33 |
-
source .cuny-tech-prep-tutorial-
|
| 34 |
-
|
| 35 |
-
10. Install the dependencies listed in the requirements.txt file:
|
| 36 |
-
pip install -r requirements.txt
|
| 37 |
-
|
| 38 |
-
11. Run streamlit:
|
| 39 |
streamlit run app.py
|
|
|
|
| 1 |
+
Instructions to setup your virtual environment using pyenv on Debian/Ubuntu:
|
| 2 |
+
|
| 3 |
+
1. Install the necessary changes with this command:
|
| 4 |
+
sudo apt install -y make build-essential libssl-dev zlib1g-dev \
|
| 5 |
+
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
|
| 6 |
+
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl \
|
| 7 |
+
git
|
| 8 |
+
|
| 9 |
+
2. Install pyenv:
|
| 10 |
+
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
| 11 |
+
|
| 12 |
+
3. Add the pyenv to your $PATH (if you use a different shell than bash you have to change ~/.bashrc accordingly):
|
| 13 |
+
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
|
| 14 |
+
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
|
| 15 |
+
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
|
| 16 |
+
|
| 17 |
+
4. Install Python Version 3.11.0:
|
| 18 |
+
pyenv install 3.11.0
|
| 19 |
+
|
| 20 |
+
5. Clone this repository:
|
| 21 |
+
git clone https://huggingface.co/spaces/GeorgiosIoannouCoder/cuny-tech-prep-tutorial-6
|
| 22 |
+
|
| 23 |
+
6. Navigate to the cloned repository folder:
|
| 24 |
+
cd cuny-tech-prep-tutorial-6
|
| 25 |
+
|
| 26 |
+
7. Use the installed Python version in the cloned repository folder:
|
| 27 |
+
pyenv local 3.11.0
|
| 28 |
+
|
| 29 |
+
8. Create virtual environment in the cloned repository folder:
|
| 30 |
+
python -m venv .cuny-tech-prep-tutorial-6-venv
|
| 31 |
+
|
| 32 |
+
9. Activate the virtual environment:
|
| 33 |
+
source .cuny-tech-prep-tutorial-6-venv/bin/activate
|
| 34 |
+
|
| 35 |
+
10. Install the dependencies listed in the requirements.txt file:
|
| 36 |
+
pip install -r requirements.txt
|
| 37 |
+
|
| 38 |
+
11. Run streamlit:
|
| 39 |
streamlit run app.py
|