【发布时间】:2014-12-22 23:34:03
【问题描述】:
我正在尝试在 mac 10.10 - https://code.google.com/p/or-tools/wiki/OrToolsWithPyPi 上安装 Google 的 or-tools。
我使用python2.7 setup.py install --user 安装(也尝试使用 sudo 和不使用 --user),但是当它去 pypi 下载包时得到以下信息:
.. Some other output ..
Installed /Users/Zach/Library/Python/2.7/lib/python/site-packages/ortools_examples-1.3549-py2.7.egg
Processing dependencies for ortools-examples==1.3549
Searching for ortools
Reading https://pypi.python.org/simple/ortools/
No local packages or download links found for ortools
error: Could not find suitable distribution for Requirement.parse('ortools')
我注意到它创建了目录build/bdist.macosx-10.8-x86_64/egg 以构建所有内容,但我正在运行macosx 10.10。
在查看https://pypi.python.org/simple/ortools/ 时,我可以看到版本 3549 的匹配 egg 文件,但它适用于 macosx10.9,这可能是问题吗?为什么 setup.py 认为我在 10.8 上?
无论如何,这可能不是问题,因此非常感谢任何其他帮助。谢谢!
【问题讨论】:
标签: python macos osx-yosemite pypi or-tools