Skip to content

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

@resha1417

Description

@resha1417

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions