簡體   English   中英

嘗試使用 python 安裝 web3 失敗

[英]Trying to install web3 using python fails

我正在使用本教程並嘗試使用命令pip install web3 Web3.py這將生成錯誤: 在此處輸入圖像描述

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting web3
  Using cached web3-4.8.1.tar.gz (96 kB)
ERROR: Package 'web3' requires a different Python: 2.7.18 not in '>=3.5.3,<4'

我該如何解決這個錯誤?

請嘗試使用python3.7版本。

我這邊安裝成功。

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM