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

set python lib path #6

Closed
econwang opened this issue Jul 11, 2019 · 2 comments
Closed

set python lib path #6

econwang opened this issue Jul 11, 2019 · 2 comments

Comments

@econwang
Copy link

I try the example on windows with intel compiler, it only works when I put the compiled executable in the path where python.exe located, otherwise it throws the error that py initinlizer can not find python modules.

So I wonder how to set python lib path in the fortran part. Many thanks!

@ylikx
Copy link
Owner

ylikx commented Jul 12, 2019

There are functions in the Python C API to set the paths before initializing the Python interpreter, but I have not implemented them in forpy. Try setting the environment variables PATH / PYTHONHOME / PYTHONPATH:

https://docs.python.org/3.7/using/windows.html#configuring-python

@econwang
Copy link
Author

There are functions in the Python C API to set the paths before initializing the Python interpreter, but I have not implemented them in forpy. Try setting the environment variables PATH / PYTHONHOME / PYTHONPATH:

https://docs.python.org/3.7/using/windows.html#configuring-python

Thanks, PYTHONPATH does not work, but PYTHONHOME works.

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