简体   繁体   English

PIP 安装web3

[英]PIP Install web3

I am having trouble installing web3.py on my macOS by pip我无法通过 pip 在我的 macOS 上安装 web3.py

The error I am getting is我得到的错误是

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

I have followed the docs and make a venv they way the said and still no luck I am using python 3.6.6我已经按照文档按照所说的方式制作了一个 venv 但仍然没有运气我正在使用 python 3.6.6

https://web3py.readthedocs.io/en/stable/troubleshooting.html#setup-environment https://web3py.readthedocs.io/en/stable/troubleshooting.html#setup-environment

Has anyone else had this problem?有没有其他人有这个问题?

I just did it and didn't have a problem. 我只是做到了,没有问题。 Try upgrading your Python version to the latest one available. 尝试将您的Python版本升级到最新版本。 Download the newest version of it from www.python.org or from your package manager of choice. www.python.org或从您选择的软件包管理器中下载最新版本。

If you are using home brew just type : 如果您正在使用家庭酿造,只需键入:

brew update 

brew upgrade python3

Then just simple use pip to install the required packages. 然后只需简单地使用pip即可安装所需的软件包。

pip install web3

you need to use another command also, it'll help to clear the user error on your os.您还需要使用另一个命令,它将有助于清除操作系统上的用户错误。

xcode-select --install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM