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

MacOS编译安装paddle v1.0问题(持续更新) #13724

Closed
DDDivano opened this issue Oct 1, 2018 · 0 comments
Closed

MacOS编译安装paddle v1.0问题(持续更新) #13724

DDDivano opened this issue Oct 1, 2018 · 0 comments
Assignees

Comments

@DDDivano
Copy link
Contributor

DDDivano commented Oct 1, 2018

1、10.13版本MacOS编译安装可以正常通过,import时候会报错,是本机环境问题,安装编译过程没有问题,这里是一个不可控风险,因为用户环境多样,可能需要FAQ来支持。

2、重要为了保证环境纯净,我低格Mac重做系统,发现Apple在9月末更新了10.14版本的OS,带来的结果是10.13用的c++编译器是9.1,10.14用的c++编译器是10.0,导致编译出错,无法正常编译通过,涉及版本python2,python3。

3、指令错误。
image
是否为 find $(dirname $(dirname $(which python3))) -name "libpython3.*.dylib"?

4、文档中提到建议使用brew install python@3来安装python3版本,但是由于brew更新了python源,现在使用该命令会安装python3.7版本,而我们python3版本只支持python3.5,所以对应的安装文档建议修改一下。安装Python3建议在这里安装pkg,有可视化界面安装,官网文档可以修改此方式建议用户安装。URL=https://www.python.org/downloads/mac-osx/
image

5、python3安装完成后需要使用官网修改相关库的,还是会报错误。
image
此错误在使用export LD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.5export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.5后可以正确import paddle.fluid。这里官网需要注明一下。

shanyi15 pushed a commit to PaddlePaddle/docs that referenced this issue Oct 9, 2018
* renew the install doc for V1.0

* refine doc

* refine MAC_compile with user installed openblas

* fix python3 related issue according to PaddlePaddle/Paddle#13724

* refine python3 LD_LIBRARY and DYLD_LIBRARY set

* fix FAQ

* refine macos compile and install on python settings

* refine mac compile command

* fix comment related format problem

* fix FAQ format problem

* add mac compile on 10.14

* remove py3 compile on mac 10.14

* refine
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

2 participants