Sage already uses numpy, so the new code can just import it. If in your project you need another Python library, perhaps pytorch, you can just install it like this: "./sage -pip install torch". Then code can import it. Later it can be added to Sage by creating package metadata in build/pkgs - see https://doc.sagemath.org/html/en/developer/packaging.html
On Friday, April 15, 2022 at 2:55:14 AM UTC-7 [email protected] wrote: > Respected Sir, > I am stuck on the integration of python libraries in sage (For > idea: Tensor operations in Sage using Python libraries as backends). How > would we include the custom written libraries to achieve the required > results? I am performing all these sage tasks on Linux. So accordingly > please guide me. > > Thanks and Regards, > Priyal Awankar > -- You received this message because you are subscribed to the Google Groups "sage-gsoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-gsoc/dfb59f67-0f2a-40e1-be0b-0aa7ba303adfn%40googlegroups.com.
