pip install at windows
wang37921 opened this issue · 6 comments
-
have cmake nanomsg, and installed.
-
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 -
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...
I have never tried this myself, so there's not a lot I can do to help, I'm afraid.
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)
Thanks for sharing! I'll close this for now, then.
Any plan on supporting installing in windows through conda-forge to make it easier?
No concrete plans, nope -- I have no use case for that stuff.
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