When installing openpyxl, you need to switch the cmd path to Scripts in the python installation directory (E:\Python 3.7.0\Scripts). Use python.7 in cmd can use python7 version. My computer has two versions, python3.6 and python3.7, and the default python environment variable is python3.6. (I don't want to trouble to see the problem directly) Problem screenshot Prepare to use openpyxl excel form for operation, you need to install openpyxl first, and error occurs during installation.