GeorgiosIoannouCoder
commited on
Commit
•
32decff
1
Parent(s):
3655167
Update setup/Windows_setup.txt
Browse files- setup/Windows_setup.txt +48 -48
setup/Windows_setup.txt
CHANGED
@@ -1,49 +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-
|
32 |
-
|
33 |
-
5. Navigate to the cloned repository folder:
|
34 |
-
cd cuny-tech-prep-tutorial-
|
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-
|
41 |
-
|
42 |
-
8. Activate the virtual environment:
|
43 |
-
.\.cuny-tech-prep-tutorial-
|
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
|
|
|
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-6
|
32 |
+
|
33 |
+
5. Navigate to the cloned repository folder:
|
34 |
+
cd cuny-tech-prep-tutorial-6
|
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-6-venv
|
41 |
+
|
42 |
+
8. Activate the virtual environment:
|
43 |
+
.\.cuny-tech-prep-tutorial-6-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
|