We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Paddle/python/paddle/base/core.py
Line 407 in a2cd9af
site.USER_SITE的取值可能为None,继而导致path join时候异常。 Python官方文档
在不适合将python深入嵌入操作系统的情况下,解释器以及其对应依赖路径都是动态设置的情况下,site.USER_SITE可能是未设置的。
增加判断条件if hasattr(site, 'USER_SITE') and site.USER_SITE:
if hasattr(site, 'USER_SITE') and site.USER_SITE:
The text was updated successfully, but these errors were encountered:
收到,正在联系对应接口人进行审核
Sorry, something went wrong.
@zbt78
lijialin03
No branches or pull requests
问题代码
Paddle/python/paddle/base/core.py
Line 407 in a2cd9af
详细描述
site.USER_SITE的取值可能为None,继而导致path join时候异常。
Python官方文档
触发背景
在不适合将python深入嵌入操作系统的情况下,解释器以及其对应依赖路径都是动态设置的情况下,site.USER_SITE可能是未设置的。
解决方式
增加判断条件
if hasattr(site, 'USER_SITE') and site.USER_SITE:
The text was updated successfully, but these errors were encountered: