How to install or-tools 6.x on osx 10.11.6

608 views
Skip to first unread message

Evmar Hosa

unread,
Jul 6, 2019, 3:57:18 AM7/6/19
to or-tools-discuss
This is what I've tried. Is there another way? The application I'm using is not compatible with or-tools 7.x yet.

$ pip install --upgrade pip
Requirement already up-to-date: pip in ./tempvenv/lib/python3.7/site-packages (19.1.1)

$ pip install -r requirements.txt
Requirement already satisfied: matplotlib in ./tempvenv/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (3.1.1)
Requirement already satisfied: networkx in ./tempvenv/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (2.3)
Requirement already satisfied: numpy in ./tempvenv/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (1.16.4)
Requirement already satisfied: google-api-python-client in ./tempvenv/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (1.7.9)
Requirement already satisfied: oauth2client in ./tempvenv/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (4.1.3)
Requirement already satisfied: httplib2 in ./tempvenv/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (0.13.0)
Collecting ortools<7.0 (from -r requirements.txt (line 7))
ERROR: Could not find a version that satisfies the requirement ortools<7.0 (from -r requirements.txt (line 7)) (from versions: 7.0.6546, 7.1.6720, 7.2.6977)
ERROR: No matching distribution found for ortools<7.0 (from -r requirements.txt (line 7))

Thanks!

Laurent Perron

unread,
Jul 6, 2019, 4:34:56 AM7/6/19
to or-tools-discuss
You need to pass the version explicitly.
I forgot the exact command line 

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/9db096fc-264e-495b-9fc0-fa587ed00128%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Evmar Hosa

unread,
Jul 6, 2019, 4:40:53 AM7/6/19
to or-tools-discuss
Thanks.

I've tried

python3 -m pip install --user ortools==6.10.6025

But that didn't work. Maby the binary is no longer available?

Laurent Perron

unread,
Jul 6, 2019, 4:51:35 AM7/6/19
to or-tools-discuss
No, but I believe the min requirement in term of osx is higher, like 10.13


--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.

Evmar Hosa

unread,
Jul 6, 2019, 5:06:29 AM7/6/19
to or-tools-discuss
I see. That's a bummer. My macbook from 2009 is not able to update to that version of osx.

Evmar Hosa

unread,
Jul 6, 2019, 5:19:33 AM7/6/19
to or-tools-discuss
But latest version of or-tools installs without any problem on osx 10.11.6. Wouldn't that imply that or-tools 6.10 also would work with this version of osx?

Evmar Hosa

unread,
Jul 6, 2019, 11:42:58 AM7/6/19
to or-tools-discuss
This is the result when trying to install 6.10. Am I doing something wrong?

$ python3 -m pip install --user ortools==6.10.6025
Collecting ortools==6.10.6025
ERROR: Could not find a version that satisfies the requirement ortools==6.10.6025 (from versions: 7.0.6546, 7.1.6720, 7.2.6977)
ERROR: No matching distribution found for ortools==6.10.6025

Laurent Perron

unread,
Jul 6, 2019, 12:19:54 PM7/6/19
to or-tools-discuss
Yes, we changed the minimum requirements in 7.1

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.

Laurent Perron

unread,
Jul 6, 2019, 1:20:27 PM7/6/19
to or-tools-discuss
You can still compile from sources. It should be quite easy. 

https://developers.google.com/optimization/install/python/source_mac
Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00



Reply all
Reply to author
Forward
0 new messages