YasserKhalil
YasserKhalil

Reputation: 9568

Can't install zbarlight on windows 10

I am trying to follow the steps at this article https://ruvi-d.medium.com/getting-zbarlight-to-work-on-windows-a3dc643dba18

At step 3 I got this desription

Apply this patch https://bugs.python.org/file40608/patch.diff to the cygwinccompiler.py file in the same folder

How to apply this patch? I have no idea how to perform such a step

Upvotes: 0

Views: 346

Answers (1)

jrobin
jrobin

Reputation: 26

From the steps indicated I think you should open your terminal and follow theses steps :

  • First go in the folder indicated : cd <your_python_path>\Lib\distutils.
  • Second - according to the author of the article, a file named cygwinccompiler.py is supposed to be present, the patch is supposed to be applied on it.
  • Third download (or copy as you prefered) the patch file in the current directory, lets name the patch file patch.diff (for reminder here is its link https://bugs.python.org/file40608/patch.diff).
  • Then you must run :
pip install patch
python -m patch patch.diff

Since the name of the file to patch is present in patch.diff you do not have to precise the destination file.

Upvotes: 1

Related Questions