Skip to content
Advertisement

python can’t load clang library under cygwin environment

I installed the latest cygwin64 under windows 10, then started to install some cygwin packages like python3.9 and clang 8.0.1, then via cygwin terminal, pip3 install clang==8.0.1 Now, I’m trying the following:

JavaScript

What I understand is that it fails to open a clang library, after searching for it, I found a lot of libraries at /usr/lib, and one of them is libclang.dll.a, I tried to make a symbolic link for it according some other SO questions suggest like:

JavaScript

but with no luck, any help as I’m not familiar with python.

Advertisement

Answer

The issue is fixed now. The root cause was that I installed the latest version of each package. so I installed python v3.9 and clang v8.0.1. python v3.9 was expecting clang v10 which is not available at cygwin repos, and the latest python bindings for clang was for version v3.7, so I removed python v3.9 and installed version v3.7 which expects the latest clang version available.

P.S. I removed this package as it has no need pip3 install clang==8.0.1

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement