nanomsg / nnpy

cffi-based Python bindings for nanomsg
MIT License
117 stars 39 forks source link

pip install at windows #44

Closed wang37921 closed 7 years ago

wang37921 commented 7 years ago
  1. have cmake nanomsg, and installed.

  2. add a file: site.cfg and input content: [DEFAULT] include_dirs = C:\Program Files (x86)\nanomsg\include library_dirs = C:\Program Files (x86)\nanomsg\lib host_library = C:\Program Files (x86)\nanomsg\bin\nanomsg.dll

  3. administrator cmd at nnpy folder, input pip install .

got error tips: OSError: cannot load library C:\Program Files (x86)\nanomsg\bin\nanomsg.dll: error 0xc1

help...

djc commented 7 years ago

I have never tried this myself, so there's not a lot I can do to help, I'm afraid.

lammermann commented 7 years ago

Well I know this question is quite old but maybe the answer could benefit somebody.

I ran into the same problem as you did. Its because of incompatibilities between the python program (which is most likely compiled for 64bit architectures) and your nanomsg.dll (which is compiled for 32bit architectures).

Just recompile nanomsg with a 64bit compiler and adjust the paths accordingly (e.g. C:\Program Files\nanomsg\bin\nanomsg.dll)

djc commented 7 years ago

Thanks for sharing! I'll close this for now, then.

xgdgsc commented 6 years ago

Any plan on supporting installing in windows through conda-forge to make it easier?

djc commented 6 years ago

No concrete plans, nope -- I have no use case for that stuff.

apatti commented 6 years ago

I have compiled nanomsg using 64 bit compiler (since my python is 64 bit) and when i tried to install nnpy i get following error: OSError: cannot load library C:\Program Files\nanomsg\bin\nanomsg.dll: error 0xc1