安装指南

如果能访问外网,推荐使用 pip 安装。较新版本的 Python 通常自带 pip。如果你的 Python 不包含 pip,可以参考 地址 安装,推荐使用 阿里云镜像 加快下载速度。

接着确保 setuptools 的版本:

pip install setuptools>=3.0

接着就可以安装 PyODPS:

pip install pyodps

检查安装完成:

python -c "from odps import ODPS"

如果使用的python不是系统默认的python版本,安装完pip则可以:

/home/tops/bin/python2.7 -m pip install setuptools>=3.0

其余步骤类似。