Abstract: This article lists the common problems encountered by users when installing PyODPS. Try uninstalling and reinstalling PyODPS first before following the steps below. The uninstall step is PIP Uninstall Pyodps.

Click here to view the original text:click.aliyun.com/m/41050/

This article lists the common problems encountered when installing PyODPS. Try uninstalling and reinstalling PyODPS first before following the steps below. The uninstall step is PIP Uninstall Pyodps.

1. Warning: XXX not installed,……

Warning is not Error, Warning is not Error, Warning is not Error, important things say three times!

Refer to the Warning text, which will tell you what components you need to install using the PIP command.

2. After installation, import ODps report no module named ODps, indicating that odPS package cannot be loaded. There are several possible scenarios that could be true

There are multiple versions of Python installed. This is common for Mac using Homebrew to install a new Python package (as opposed to the system’s native Python), or both Python 2 and Python 3, or both CPython and Anaconda/Miniconda. PyODPS is not installed in the Python you currently use. To identify this problem, follow these steps:

Open the Python command line; Perform the import site; Print (site. Getsitepackages ()); Check if there is a folder named “ODps” in each path of the output. If not, confirm the problem. If the problem is confirmed, use the command line to locate the Python path to be installed and run./ Python -m PIP install Pyodps [full].

It is available on Mac/Linux

find / -regex '.*/python[^\./-]*' 2>/dev/nullCopy the code

Find out how many Pythons are installed on this machine.

The Search Path (usually the current directory) contains either odps.py or a folder named odps that contains init.py. This file may have been created by accident yourself, or you may have installed a Python package called “ODps” in the past. For the former, check and rename the file. For the latter, try to remove it using “PIP Uninstall ODps”.

3. After the installation, from ODps import * reports cannot import name ODps

Check whether an odps.py file exists in the current working path. If yes, change the name to import. Otherwise, go to step 2 for troubleshooting.

4. After installation, the import ODps report cannot import Module odps/odps.xxxx is usually due to PyODPS experiencing dependency problems. Please contact the PyODPS Technical Support Peggroup (11701793) and we will try to fix the problem.

Trying PIP Install -u Jupyter solves most of the problems in this scenario.

5. Install Syntax Error

The Python version is too early. Procedure PyODPS supports Python 2.7.6+ / Python 3.3+ as well as Python 2.6. Python 2.5 and below is not supported. You are advised to use a mainstream version.

6. “Permission denied” is reported on the Mac

Try to use

sudo pip install pyodpsCopy the code

7. The Mac did not permit a permitted sudo

This is due to system integrity protection. Reference stackoverflow.com/questions/3… , restart the machine and press ⌘+R during reboot. It then runs in the terminal

csrutil disable
reboot Copy the code

Install again after that.

8. Use times sourceIP is not in the white list

If whitelist protection exists, contact the Project Owner.

9. The front-end UI of Jupyter is faulty

You can try uninstalling and re-installing Jupyter, IpyWidgets, and WidgetSnbextension, or you can try it at bash

jupyter nbextension enable pyodps/mainCopy the code

PyODPS technology supports pin group 11701793 in case of problems