Skip to content

Conversation

@zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Sep 29, 2021

PR types

Bug fixes

PR changes

APIs

Describe

修复#34312 导致的bug,Windows Python虚环境下无法找到python解释器,导致 import paddle 时挂掉的问题。

infoflow 2021-09-29 22-50-02

原因是由于Python虚环境下 sys.exec_prefix 在解释器python.exe的上一级目录;而Python裸机环境下sys.exec_prefix 在解释器python.exe的同一级目录。

该PR修复了这个问题。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Oct 11, 2021
@PaddlePaddle PaddlePaddle unlocked this conversation Oct 11, 2021
Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants