abdelkimo / or-tools

Automatically exported from code.google.com/p/or-tools
1 stars 0 forks source link

pip install ortools not working #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On OS X (probably Linux too) create a Python2 virtualenv
2. pip install ortools

Instead of installing the package, pip returns a message:

    Downloading/unpacking ortools
    Could not find any downloads that satisfy the requirement ortools
    Cleaning up...
    No distributions at all found for ortools

Versions:

$ python --version
Python 2.7.8

OS X 10.9.5

Running pips install ortools -vvvv as suggested in 
http://stackoverflow.com/questions/9559716 suggests that the egg is not 
accepted for some reason.

    Skipping link https://pypi.python.org/packages/2.7/o/ortools/ortools-1.3853-py2.7-macosx-10.9-intel.egg#md5=f1f23b375652d40b9fbce682302e8dc8 (from https://pypi.python.org/simple/ortools/); unknown archive format: .egg

Original issue reported on code.google.com by kermit666 on 16 Feb 2015 at 10:37

GoogleCodeExporter commented 9 years ago
OK, I managed to solve it by upgrading setuptools from 12.05 to 12.1 by running

    curl https://bootstrap.pypa.io/ez_setup.py -o - | python

After this installing the package got further, but was throwing ImportErrors 
for missing the ez_setup module, so I did

    pip install ez_setup

After this, pip install ortools worked. I'm not really sure if this was an 
issue with setuptools, my local virtualenv spaghetti or some ortools package 
settings.

Original comment by kermit666 on 16 Feb 2015 at 10:52

GoogleCodeExporter commented 9 years ago
Thanks for the workaround!

Original comment by laurent....@gmail.com on 16 Feb 2015 at 1:37

GoogleCodeExporter commented 9 years ago
I have added the steps in the troubleshooting part of the doc.

Original comment by lper...@google.com on 4 Mar 2015 at 10:24