henon / Python.Included

A Python.NET based framework enabling .NET libraries to call into Python packages without depending on a local Python installation.
MIT License
313 stars 51 forks source link

Can I change the pip install source url though "-i",like usual in python environment? #25

Closed zeugmato closed 3 years ago

zeugmato commented 3 years ago

As usual,I often changed the pip install source url to like "https://.............." through "-i".Is there any argument to implement it? And then, if I want to use such as pandas, numpy, every time must I install them?Can I install one time then use them directly forever?Thanks.

henon commented 3 years ago

I think you'll have to add support for -i in PipInstallModule and\or PipInstallWheel.

Your second question: Once a library is installed the deployment routine will find it and not redeploy, you can try this out.

zeugmato commented 3 years ago

Yeah, it works! Thanks a lot for your guidance. How excellent python.included is!

henon commented 3 years ago

Can you PR the change so others can benefit from it too?

zeugmato commented 3 years ago

Maybe I didn’t make it clear just now, I just added a '-i' option.For example,I want to pip install the famous package 'pandas' ,so use Installer.PipInstallModule("pandas -i https://pypi.douban.com/simple"). So I can get a faster download speed. Can this be pulled requests? I have no idea because I am a freshman with github.

henon commented 3 years ago

Oh I see, no need then, everyone can just pass whatever they need. Thanks for clarifying.