2626Prior to installing PyPatchMatch, you need to take the following
2727steps:
2828
29+ ### Debian Based Distros
30+
31+
29321 . Install the ` build-essential ` tools:
3033
3134 ```
@@ -44,14 +47,15 @@ steps:
4447 ```
4548 cd /usr/lib/x86_64-linux-gnu/pkgconfig/
4649 ln -sf opencv4.pc opencv.pc
50+ ```
4751
48524 . Activate the environment you use for invokeai, either with
4953` conda ` or with a virtual environment.
5054
51555 . Do a "develop" install of pypatchmatch:
5256
5357 ```
54- pip install -e git+https://github.com/invoke-ai/PyPatchMatch@0.1.3#egg=pypatchmatch
58+ pip install -e " git+https://github.com/invoke-ai/PyPatchMatch@0.1.3#egg=pypatchmatch"
5559 ```
5660
57616 . Confirm that pypatchmatch is installed.
@@ -79,8 +83,33 @@ steps:
7983 [link] libpatchmatch.so ...
8084 ```
8185
82- If you see no errors, then you're ready to go!
8386
87+ ### Arch Based Distros
8488
89+ 1 . Install the ` base-devel ` package:
90+ ```
91+ sudo pacman -Syu
92+ sudo pacman -S --needed base-devel
93+ ```
94+
95+ 2 . Install ` opencv ` :
96+ ```
97+ sudo pacman -S opencv
98+ ```
99+ or for CUDA support
100+ ```
101+ sudo pacman -S opencv-cuda
102+ ```
103+
104+ 3 . Fix the naming of the ` opencv ` package configuration file:
105+ ```
106+ cd /usr/lib/pkgconfig/
107+ ln -sf opencv4.pc opencv.pc
108+ ```
109+
110+ ** Next, Follow Steps 4-6 from the Debian Section above**
111+
112+
113+ If you see no errors, then you're ready to go!
85114
86115
0 commit comments