MAC下go get github.com/sbinet/go-python报错pkg-config: exec: "pkg-config": executable file not found in

1.  pkg-config: exec: "pkg-config": executable file not found in $PATH

解决方案:brew install pkg-config

 

2.Package python-2.7 was not found in the pkg-config search path.

Perhaps you should add the directory containing `python-2.7.pc'

to the PKG_CONFIG_PATH environment variable

No package 'python-2.7' found

pkg-config: exit status 1

解决方案:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig

你可能感兴趣的:(go)