-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix pythonlib can not be found #624
Conversation
`Python_ADDITIONAL_VERSIONS` can set up the python version, which required for old versions of CMake. It can be added to the front so that the specified version (2.7) could be found. https://github.com/Kitware/CMake/blob/release/Modules/FindPythonInterp.cmake#L29
我的Mac默认的是python 2.6,用这段代码是能找到python 2.7的库。 如果这个PR还不能解决问题,可以添加FAQ:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个PR并不能解决Pythonlib和PythonInterp不同的问题。
那么,感觉最彻底的解决方法, 就是把最新版本的cmake里面的FindPython这个lib挪到paddle里面来了,不知道好不好处理。 |
如果不是很着急的话,这个事情可以先放一放。 因为相对而言这个事情比较简单,咱可以让Paddle外部人员贡献一下。。:-) |
我们把事情描述清楚就行了。 |
@reyoung @backyes 那先就这样吧, 我看大家都没有直接去解决的样子。。 |
* add launch mp distributed job * fix comment * update by comment
* gpt2 parallel emb * parallel matmul * split multi head attention * split attention head * split cross entropy * fuse qkv * update column row parallel linear * GPT. add unittest. Co-authored-by: WangXi <[email protected]>
* add dygraph prune quick_start * add mobile deploy doc * complete deploy doc * add images * fix a error; * fix some error Co-authored-by: gmm <[email protected]>
Python_ADDITIONAL_VERSIONS
can set up the python version, which required for old versions of CMake. It can be added to the front so that the specified version (2.7) could be found.https://github.com/Kitware/CMake/blob/release/Modules/FindPythonInterp.cmake#L29
Code snippet already been validated in my laptop.