【发布时间】:2017-01-10 17:57:24
【问题描述】:
我正在尝试在我的 Mac 上的 Python 上安装 cplex,但我真的卡住了。
setup.py 文件位于以下路径中:
/Users/mac/Applications/IBM/ILOG/CPLEX_Studio127/cplex/python/2.7/x86-64_osx
我正在使用树冠来运行 Python。
我在Mac终端输入如下代码,结果如下:
macs-mbp:~ mac$ python setup.py install
/Users/mac/Library/Enthought/Canopy_64bit/User/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory
macs-mbp:~ mac$
然后我决定使用(option --home),但结果也很糟糕:
macs-mbp:~ mac$ python setup.py install --home /Users/mac/Applications/IBM/ILOG/CPLEX_Studio127/cplex
/Users/mac/Library/Enthought/Canopy_64bit/User/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory
macs-mbp:~ mac$
我也尝试过使用cd,但这并没有带来任何改进。
对于在 Mac 上的 Python 上安装 cplex 的任何帮助,我们将不胜感激!
【问题讨论】:
标签: python macos terminal cplex