如何在macOS High Sierra上安装Anaconda Python 3.6.3的图形工具? (我已经能够为Python 2.7.10安装图形工具了。)谢谢!
我按照说明操作,先试了
brew tap homebrew/science
但得到了“错误:自制软件/科学已被弃用。此漏洞现在为空,因为其所有公式都已迁移。”无论如何,我找到了一个解决方案(忘记了确切的brew命令)并运行了
brew install graph-tool
现在说“警告:brewsci / science / graph-tool 2.26_1已经安装”。然后我可以从python 2.7导入图形工具,
$ /usr/bin/python2.7
>>> from graph_tool.all import *
但不是来自anaconda发行版,
$ python
Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 6 2017, 12:04:38)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from graph_tool.all import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'graph_tool'