Xeno443 commited on
Commit
528d2e6
·
verified ·
1 Parent(s): 0431e90

Initial version

Browse files
Files changed (1) hide show
  1. stepbystep-pythonportable.md +72 -0
stepbystep-pythonportable.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # reforgePortable
2
+ Experimenting to build a portable version of stable-diffusion-webui-reForge
3
+ This version uses the official Python embeddable package which seems to be pretty barebone and showed some issue with
4
+ some files not being in the directory that the UI requirements setup process expected them to be, so make sure to move
5
+ then appropriately!
6
+
7
+ ***
8
+ ## Prerequisites
9
+ Microsoft Visual C++ 2015 Redistributable
10
+ https://www.microsoft.com/en-us/download/details.aspx?id=48145
11
+ Microsoft Visual C++ 2015-2022 Redistributable
12
+ https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022
13
+
14
+ ***
15
+ ## Prepare folders
16
+ 1) Create folder C:\SD\reforge-portable
17
+ 2) Create subfolder C:\SD\reforge-portable\system
18
+ 3) Create subfolder C:\SD\reforge-portable\system\git
19
+ 4) Create subfolder C:\SD\reforge-portable\system\python
20
+
21
+ ![folder-2](https://github.com/user-attachments/assets/9a902582-fad3-4221-8246-d4874aeb4b66)
22
+
23
+ ***
24
+ ## Install Git portable
25
+ Browse to https://git-scm.com/downloads/win and download "64-bit Git for Windows Portable"
26
+ ![git-download-1](https://github.com/user-attachments/assets/1eaf8d60-2e0e-4775-9082-6b4934d42462)
27
+
28
+ Execute downloaded exe file and extract to C:\SD\reforge-portable\system\git
29
+ ![git-install-1](https://github.com/user-attachments/assets/03520868-5b3d-421f-9a37-d813719175bf)
30
+
31
+ ***
32
+ ## Install Python embeddable package
33
+ Browse to https://www.python.org/downloads/release/python-31011/ and download "Windows embeddable package (64-bit)"
34
+ ![python-download-1](https://github.com/user-attachments/assets/732008ca-1d28-4320-8390-8e5ed4f7e028)
35
+
36
+ Extract downloaded zip file to C:\SD\reforge-portable\system\python
37
+ ![python-install-1](https://github.com/user-attachments/assets/50813c74-9c37-48fb-911a-269fe4940197)
38
+
39
+ Create subfolder C:\SD\reforge-portable\system\python\DLLs and move the following files from the python directory into this folder
40
+ ![python-install-2](https://github.com/user-attachments/assets/eb2a19ce-8ae0-4350-bca4-27f639f9cdb1)
41
+
42
+ Delete the file "python310._pth" from the C:\SD\reforge-portable\system\python directory
43
+ ![python-install-4](https://github.com/user-attachments/assets/9c224be6-cd0f-42a5-97d6-4c031ee6f023)
44
+
45
+ ***
46
+ ## Install get-pip.py script
47
+ Browse to https://bootstrap.pypa.io/ (Github: https://github.com/pypa/get-pip) and download [get-pip.py](https://bootstrap.pypa.io/get-pip.py) into C:\SD\reforge-portable\system\python
48
+ ![python-install-3](https://github.com/user-attachments/assets/0c9b4587-ad45-4310-a497-4034dfb2f762)
49
+
50
+ ***
51
+ ## Get run scripts
52
+ - Either download the full [Forge portable zip](https://github.com/lllyasviel/stable-diffusion-webui-forge?tab=readme-ov-file#installing-forge)
53
+ and extract only the 3 bat files from the root
54
+ - or download them from my github here [/runscipts/](runscripts/)
55
+
56
+ Copy these three files into C:\SD\reforge-portable
57
+ ![webui-install-1](https://github.com/user-attachments/assets/13d732b1-767a-41bd-acde-8b49c04e8a8d)
58
+
59
+ ***
60
+ ## Git clone reForge
61
+ Open cmd.exe in C:\SD\reforge-portable.
62
+ 1) Run environment.bat
63
+ 2) Run `git clone https://github.com/Panchovix/stable-diffusion-webui-reForge webui`
64
+
65
+ ![webui-install-2](https://github.com/user-attachments/assets/cc1df314-fa1e-4323-b164-106be01e8220)
66
+
67
+ ***
68
+ ## First-run
69
+ Run `run.bat`. This should now start the normal reForge requirements installations which may take quite a while
70
+ ![webui-install-3](https://github.com/user-attachments/assets/da8c3cb4-792c-46f7-82ee-5515eba77cf1)
71
+
72
+ If everything goes well the webUI page will open after everything is complete.