Python client install fails

I tried to install the pymgclient, but it fails:

Command “C:\Users\stefan\PycharmProjects\laypasa\venv\Scripts\python.exe -u -c “import setuptools, tokenize;file
=‘C:\Users\stefan\AppData\Local\Temp\pip-install-gm9u6u5s\pymgclient\setup.py’;f=getattr(tokenize, ‘open’, o
pen)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record
C:\Users\stefan\AppData\Local\Temp\pip-record-0khsohdm\install-record.txt --single-version-externally-managed --com
pile --install-headers C:\Users\stefan\PycharmProjects\laypasa\venv\include\site\python3.7\pymgclient” failed with e
rror code 1 in C:\Users\stefan\AppData\Local\Temp\pip-install-gm9u6u5s\pymgclient\

I installed MS Build 2019 (just the way the MS .msi suggests), I installed openssl via pip3, also the way via python3 setup.py build and then install (no error so far, hope this means success). Do I have to prepare somehow these denoted python and pymgclient headers? What is that, and how to prepare? Won’t it come by installing Python respective pymgclient automatically?

Hi @stefan!

The main issue is that mgclient (C client, pymgclient depends on it) is not yet Windows compatible. The good thing is mgclient will be compatible soon when this https://github.com/memgraph/mgclient/pull/5 PR will be merged. After that, it should be possible to have pymgclient on Windows as well.

Until that happens, a quick alternative is https://github.com/neo4j/neo4j-python-driver/tree/1.6 (note v1.6).

Please let me know if that works :smiley: