nickzuber/chs

Installation notes for python3.9 / Fedora 33

Closed this issue · 0 comments

jn64 commented

Ran into some issues with editdistance due to it not having wheels for python >3.7, this is the solution.

sudo dnf install gcc-c++ python3-devel
CFLAGS="-Wno-sign-compare" python3 -m pip install chs

That's all.


Details in case it helps anyone searching:

gcc errors make build editdistance python3.8 python3.9 linux

warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]

Solution: set or export CFLAGS="-Wno-sign-compare"

editdistance/bycython.cpp:24:10: fatal error: Python.h: No such file or directory

Solution: install python3-devel (might be called python-dev or python3-dev on Ubuntu/Debian etc).