swiftnet icon indicating copy to clipboard operation
swiftnet copied to clipboard

not able to generate cylib.so file with pip virtual environment

Open resha1417 opened this issue 5 years ago • 0 comments

Hello dear @orsic ,

thank you for such a great work. I am not able to generate cylib.so file. I have created a virtual environment (Swiftnet) with python3.8 and installed specific requirements. While generating a .so file, I use this command

g++ -shared -pthread -fPIC -fwrapv -O3 -Wall -fno-strict-aliasing
-I/home/resha/Swiftnet/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -o cylib.so cylib.cc

but I am getting an error at the time of compilation, which is as folllows: cylib.cc:610:31: fatal error: numpy/arrayobject.h: No such file or directory compilation terminated.

Please let me know if you have any solution for this and if the setup can be done in virtual environment.

Also, I have tried the same appaoch with python3.7 in a separate virtual env

Regards, Resha Thacker

resha1417 avatar Nov 18 '20 14:11 resha1417