解决ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.7

foreword

Recently, due to the needs of the project, when deploying the blockchain network, there is a problem. When running the downloaded install.sh script, it prompts an error. Then find
insert image description here
the script file and find the statement corresponding to the error. It is found that the pip of python has not been downloaded.
insert image description here

solve

Know the cause of the problem, and then just download a Pip, but encounter this problem again when downloading and encounter ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa .io/pip/2.7/get-pip.py instead.
insert image description here

reason

Other versions are also due to the conflict between the old and new versions. The solution to this error is the same, modify the required version number by yourself

Solution

According to the current error content you encounter, copy the path provided in the error report, as shown in the figure above, enter the command

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py

Re-enter the command

 python get-pip.py 

Success, as shown in the figure below,
insert image description here
check whether it is successful

which pip # 查看安装路径
pip -v # 查看版本号

insert image description here
Then execute install.sh to install successfully.

Guess you like

Origin blog.csdn.net/ic_xcc/article/details/123731602