我試圖用Homebrew來安裝graph-tool,但是python3找不到它。如何讓python3導入圖形工具由Homebrew安裝?
brew tap homebrew/science
brew install graph-tool
據說,該軟件包安裝在homebrew/science/graph-tool-2.22_1
,在那裏我才發現/usr/local/Homebrew/Library/Taps/homebrew/homebrew-science/graph-tool.rb
。
當我試圖在python3導入圖形工具,它表明 from graph_tool.all import *
ImportError: No module named 'graph_tool'
我使用python3。
which python3 /usr/local/bin/python3
有沒有一種方法,我可以使用安裝在家釀的graph_tool包?
任何幫助,將不勝感激。