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

AI子进程启动失败种种问题的解决方案 #27

Open
Kanerudaisuki opened this issue Mar 14, 2021 · 0 comments
Open

AI子进程启动失败种种问题的解决方案 #27

Kanerudaisuki opened this issue Mar 14, 2021 · 0 comments

Comments

@Kanerudaisuki
Copy link

根本原因是某些py版本或者系统上子进程无法继承父进程的venv,所以在venv环境下配置的包在ai子进程都是感知不到的,环境变量、搜索路径也不继承,打个断点就能发现它报找不到‘xxxx’模块,这些模块在venv确定是已经安装的,因此需要全局安装所有依赖项。
然后,python版本是很重要的,尽量避免使用py39,最好使用py37,py39会导致某几个包的依赖项本地构建失败,然而看错误信息根本牛头不对马嘴。

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

1 participant