Matplotlib最近released a python 3 compatible version。要安装matplotlib,你需要numpy。
我按照说明here安装了matplotlib。我尝试根据instructions for Mac OS Lion 10.7 here安装numpy(希望它可能足够相似),但终端卡在第一个命令:
$curl http://python-distribute.org/distribute_setup.py | python3
dyld: Library not loaded: @rpath/libcurl.4.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/Current/bin/curl
Reason: Incompatible library version: curl requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
第二个(正如预期的那样):
$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3
dyld: Library not loaded: @rpath/libcurl.4.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/Current/bin/curl
Reason: Incompatible library version: curl requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
有关如何修复卷曲错误的任何想法?
答案 0 :(得分:1)
从this post,我找到了更新curl的说明。
但是我担心下载Mac安全版本,所以我去了this page,向下滚动到Mac部分并在Apple网站上选择了一个。
最后我决定安装此版本作为额外的卷曲(即,不替换系统卷曲),所以这里是修改后的说明:
$CFLAGS=-m64 ./configure --prefix=
pathname
$make
$sudo make install
要运行它,请进入路径名 / bin /目录,然后运行:
$ ./curl URL_OF_DOWNLOAD | python3