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

Install packages programmatically after build #992

Closed
padmalcom opened this issue Mar 31, 2021 · 3 comments
Closed

Install packages programmatically after build #992

padmalcom opened this issue Mar 31, 2021 · 3 comments
Labels

Comments

@padmalcom
Copy link

Hi I wrote a speech assistant that can be extended by skills. These skills come as python file and optionally a requirements.txt that I install programmatically using pip. In my anaconda environment it works well but when I build the application using cx_Freeze it cannot find the modules (even though the programmatic installation via pip is successful). Any ideas how I can do the dynamic installation and loading of modules?

@marcelotduarte
Copy link
Owner

I think this is possible, however, cx-freeze is basically an isolated python, that is, it does not search for these external packages. But if you create an init script[1], you can create something along these lines. Basically, the 'site module'[2] has no effect in isolated mode.

[1] https://github.com/marcelotduarte/cx_Freeze/tree/main/cx_Freeze/initscripts
[2] https://docs.python.org/3/library/site.html?highlight=site#module-site

@marcelotduarte
Copy link
Owner

cx_Freeze 6.6 has just been released.
Can I close this issue?

@marcelotduarte
Copy link
Owner

cx_Freeze 6.7 has just been released.

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

No branches or pull requests

2 participants