使用pip安装时出错

不知道这里发生了什么,但每次我尝试使用pip安装时都会收到错误我收到以下错误:

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无法根据错误中的“import setuptools”访问Setuptools.首先尝试以下操作,然后再次尝试运行pip安装.

sudo pip install -U setuptools

Github Issue解决方案

相关文章
相关标签/搜索