Installation problem on Mac
Hello,
I've been using graph-tool recently for a project and I managed to install it fine on ubuntu 18 for python 3. But I cannot manage to install it on my laptop, macbook (os Mojave) for python3... I successfully installed it for python 2.7 with macport but not for python 3. I tried to install it using brew but it failed because the default python I set up for brew is python 3.
brew install graph-tool
I get this error:
==> /usr/local/Cellar/graph-tool/2.27_1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/graph-tool--m
Last 15 lines from /Users/6ui11aum3/Library/Logs/Homebrew/graph-tool/05.pip:
Removed build tracker '/private/tmp/pip-req-tracker-pgu9ipfe'
Command "/usr/local/Cellar/graph-tool/2.27_1/libexec/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-m8k0oq7p/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-e__4tev6/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/graph-tool/2.27_1/libexec/bin/../include/site/python3.7/matplotlib" failed with error code 1 in /private/tmp/pip-req-build-m8k0oq7p/
Exception information:
Traceback (most recent call last):
File "/usr/local/Cellar/graph-tool/2.27_1/libexec/lib/python3.7/site-packages/pip/_internal/basecommand.py", line 141, in main
status = self.run(options, args)
File "/usr/local/Cellar/graph-tool/2.27_1/libexec/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 347, in run
use_user_site=options.use_user_site,
File "/usr/local/Cellar/graph-tool/2.27_1/libexec/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
**kwargs
File "/usr/local/Cellar/graph-tool/2.27_1/libexec/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 972, in install
spinner=spinner,
File "/usr/local/Cellar/graph-tool/2.27_1/libexec/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 701, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/usr/local/Cellar/graph-tool/2.27_1/libexec/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-req-build-m8k0oq7p/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-e__4tev6/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/graph-tool/2.27_1/libexec/bin/../include/site/python3.7/matplotlib" failed with error code 1 in /private/tmp/pip-req-build-m8k0oq7p/
Is it normal that it tried to install graph-tool for python2? I could specify the python3 version when I installed it on ubuntu, is there a way to do the same on mac?
Best regards,
G.