GeorgiosIoannouCoder commited on
Commit
313f9b5
1 Parent(s): 79ef2f9

Upload 3 files

Browse files
setup/Debian_and_Ubuntu_setup.txt ADDED
@@ -0,0 +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-1
22
+
23
+ 6. Navigate to the cloned repository folder:
24
+ cd cuny-tech-prep-tutorial-1
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-1-venv
31
+
32
+ 9. Activate the virtual environment:
33
+ source .cuny-tech-prep-tutorial-1-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
setup/Windows_setup.txt ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Instructions to setup your virtual environment using pyenv on Microsoft Windows:
2
+
3
+ 1. Install pyenv:
4
+ 1.1 Download the zip file of the following GitHub repository:
5
+ https://github.com/pyenv-win/pyenv-win
6
+ 1.2 Create a new folder .pyenv in your user folder with the name .pyenv by typing the following command in the Windows PowerShell:
7
+ mkdir $HOME/.pyenv
8
+ 1.3 Extract the ZIP-archive in your downloads folder and copy the pyenv-win folder and the .version file from the pyenv-win-master folder into the newly created .pyenv folder in your user folder.
9
+ 1.4 Set the environment variables PYENV and PYENV_HOME that point to the installation folder:
10
+ [System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
11
+ [System.Environment]::SetEnvironmentVariable('PYENV_HOME',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
12
+ 1.5 Add the bin folder to the PATH variable such that pyenv can be found when using the command line:
13
+ [System.Environment]::SetEnvironmentVariable('path', $env:USERPROFILE + "\.pyenv\pyenv-win\bin;" + $env:USERPROFILE + "\.pyenv\pyenv-win\shims;" + [System.Environment]::GetEnvironmentVariable('path', "User"),"User")
14
+ 1.6 Close the current Windows PowerShell.
15
+ 1.7 Start a new Windows PowerShell with admin privileges by right-clicking on the Windows PowerShell icon in the start menu and choose Run as administrator.
16
+ 1.8 Enter the following command into the PowerShell to enable the execution of scripts (press A to choose Yes to ALL):
17
+ Set-ExecutionPolicy unrestricted
18
+ 1.9 Close the current Windows PowerShell.
19
+ 1.10 Start a new Windows PowerShell.
20
+ 1.11 Type the following command to make sure that pyenv has been installed successfully:
21
+ pyenv
22
+ 1.12 If you encounter a security warning from where you have to choose if you want to run pyenv you can disable this warning by “unblocking” the pyenv script with the following command:
23
+ Unblock-File $HOME/.pyenv/pyenv-win/bin/pyenv.ps1
24
+
25
+ 2. Open a new command line/terminal.
26
+
27
+ 3. Install Python Version 3.11.0:
28
+ pyenv install 3.11.0
29
+
30
+ 4. Clone this repository:
31
+ git clone https://huggingface.co/spaces/GeorgiosIoannouCoder/cuny-tech-prep-tutorial-1
32
+
33
+ 5. Navigate to the cloned repository folder:
34
+ cd cuny-tech-prep-tutorial-1
35
+
36
+ 6. Use the installed Python version in the cloned repository folder:
37
+ pyenv local 3.11.0
38
+
39
+ 7. Create virtual environment in the cloned repository folder:
40
+ python -m venv .cuny-tech-prep-tutorial-1-venv
41
+
42
+ 8. Activate the virtual environment:
43
+ .\.cuny-tech-prep-tutorial-1-venv\Scripts\activate
44
+
45
+ 9. Install the dependencies listed in the requirements.txt file:
46
+ pip install -r requirements.txt
47
+
48
+ 10. Run streamlit:
49
+ streamlit run app.py
setup/macOS_setup.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Instructions to setup your virtual environment using pyenv on macOS:
2
+
3
+ 1. Install Homebrew:
4
+ Documentation found at: https://brew.sh/
5
+
6
+ 2. Install pyenv:
7
+ xcode-select --install
8
+ brew install openssl readline sqlite3 xz zlib
9
+ brew update
10
+ brew install pyenv
11
+
12
+ 3. Add the pyenv to your $PATH (if you are not using zsh as a shell, you have to change ~/.zshrc accordingly):
13
+ echo 'eval "$(pyenv init --path)"' >> ~/.zshrc
14
+
15
+ 4. Install Python Version 3.11.0:
16
+ pyenv install 3.11.0
17
+
18
+ 5. Clone this repository:
19
+ git clone https://huggingface.co/spaces/GeorgiosIoannouCoder/cuny-tech-prep-tutorial-1
20
+
21
+ 6. Navigate to the cloned repository folder:
22
+ cd cuny-tech-prep-tutorial-1
23
+
24
+ 7. Use the installed Python version in the cloned repository folder:
25
+ pyenv local 3.11.0
26
+
27
+ 8. Create virtual environment in the cloned repository folder:
28
+ python -m venv .cuny-tech-prep-tutorial-1-venv
29
+
30
+ 9. Activate the virtual environment:
31
+ source .cuny-tech-prep-tutorial-1-venv/bin/activate
32
+
33
+ 10. Install the dependencies listed in the requirements.txt file:
34
+ pip install -r requirements.txt
35
+
36
+ 11. Run streamlit:
37
+ streamlit run app.py