Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not apparent on how to use py_import to import packages installed by pip #149

Open
TimCoraxAudio opened this issue Feb 25, 2021 · 1 comment

Comments

@TimCoraxAudio
Copy link

It looks as though you can set your py lib preferences in pyd_get_env_set_text.py but I can't quite figure out how to do it properly. I'm trying to import pygeo to use in an embedded situation but can't import it. Any help here?

@mw66
Copy link
Contributor

mw66 commented May 26, 2021

Can you avoid to import many different Python files into D?

I find the easiest way to use pyd is to write a single wrapper .py file which import every needed Python packages purely on Python side, (and act as a Python server).

Then D only use this single wrapper.py, which makes the life much easier.

HTH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants