使用pip安装时发生错误 [英] Error when installing using pip

查看:96
本文介绍了使用pip安装时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定这里发生了什么,但是每次尝试使用pip安装某些东西时,我都会收到以下错误消息:

Not sure whats going on here but I am getting an error every time I try to install something using pip I get the following error:

命令"/usr/bin/python -c"导入setuptools,tokenize; __ file __ ='/private/var/folders/b0/5843zgyj1yz3b8q2l7wrtj8h0000gn/T/pip-build-V4hy8S/PySocks/setup.py'; exec( compile(getattr(tokenize,'open',open)(__ file __).read().replace('\ r \ n','\ n'),__file__,'exec'))安装--record/var/文件夹/b0/5843zgyj1yz3b8q2l7wrtj8h0000gn/T/pip-bIOl7C-record/install-record.txt-单一版本-外部管理-编译"失败,错误代码为/private/var/folders/b0/5843zgyj1gnz3b8q2l7wrTj8 /pip-build-V4hy8S/PySocks

Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/b0/5843zgyj1yz3b8q2l7wrtj8h0000gn/T/pip-build-V4hy8S/PySocks/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/b0/5843zgyj1yz3b8q2l7wrtj8h0000gn/T/pip-bIOl7C-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/b0/5843zgyj1yz3b8q2l7wrtj8h0000gn/T/pip-build-V4hy8S/PySocks

推荐答案

似乎您的PiP无法按照错误中的导入设置工具"访问设置工具.请先尝试以下内容,然后再尝试运行pip安装.

Seems that your PiP can't access Setuptools as per the "import setuptools" in the error. Try the below first then try running your pip install again.

sudo pip install -U setuptools

Github问题

这篇关于使用pip安装时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆