Installation instructions

We recommend that you use pip to install Python on MaxCompute (PyODPS) when you have access to the Internet. pip is often installed with latest releases of Python. If your Python release does not include pip, you have to install it manually. For more information about installing pip, see instructions on installing pip .

Make sure that you upgrade your pip and setuptools to the latest version by the following command.

pip install -U pip setuptools

Install PyODPS by using the following code:

pip install pyodps

If you meet the error urllib3 v2.0 only supports OpenSSL 1.1.1+ during installation, you need to install an older urllib3 version which is compatible with older OpenSSL versions.

pip install urllib3\<2.0

Then PyODPS can be installed as expected.

Check whether the installation has been completed:

python -c "from odps import ODPS"

If your version of Python is not the default version, run the following code after installing pip:

/home/tops/bin/python2.7 -m pip install -U pip setuptools

Repeat these steps to install your version of Python.