我仍然是python的新手,我需要一个项目的html5lib,但是当我运行pip install html5lib
时,我得到的是:
错误:[(' /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ init .py',&# 39; /var/folders/yr/8762117x5h7_pwb9fx5f0tzr0000gn/T/pip-uiZ0aQ-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/的初始化即可。 py'," [Errno 1]不允许操作:' /var/folders/yr/8762117x5h7_pwb9fx5f0tzr0000gn/T/pip-uiZ0aQ-uninstall/System/Library/Frameworks/Python.framework/Versions/ 2.7 / Extras / lib / python / _markerlib / init .py'"),(' /System/Library/Frameworks/Python.framework/Versions/2.7/Extras /lib/python/_markerlib/init.pyc' ;,' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T / pip-uiZ0aQ-uninstall / System / Library / Frameworks / Python。 framework / Versions / 2.7 / Extras / lib / python / _markerlib / init .pyc'," [Errno 1]不允许操作:' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T / PIP-uiZ0aQ-卸载/系统/ Library / Frameworks / Python.framework / Versions / 2.7 / Extras / lib / python / _markerlib / init .pyc'"),(' / System / Library / Frameworks /Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py' ;,' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T / pip-uiZ0aQ-uninstall / System / Library / Frameworks /Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'," [Errno 1]不允许操作:' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T /pip-uiZ0aQ-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"),(' / System / Library /Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc' ;,' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T / pip-uiZ0aQ-uninstall / System / Library /Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'," [Errno 1]不允许操作:' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr00 00gn / T / pip-uiZ0aQ-uninstall / System / Library / Frameworks / Python.framework / Versions / 2.7 / Extras / lib / python / _markerlib / markers.pyc'"),(' /系统/库/框架/ Python.framework / Versions / 2.7 / Extras / lib / python / _markerlib',' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T / pip-uiZ0aQ-uninstall / System / Library / Frameworks / Python.framework / Versions / 2.7 / Extras / lib / python / _markerlib'," [Errno 1]不允许操作:' / var / folders / yr / 8762117x5h7_pwb9fx5f0tzr0000gn / T / pip- uiZ0aQ-卸载/系统/库/框架/ Python.framework /版本/ 2.7 /附加/ LIB /蟒/ _markerlib'&#34)]
我知道,真的很长的错误,但我不知道发生了什么。我在尝试安装其他python软件包时确实遇到了错误,我不确定问题是什么。任何帮助或见解都会非常重要,谢谢!
答案 0 :(得分:0)
我认为你是在Mac上。
它有点像你试图安装到系统级Python目录而不是root(因此,"操作不被允许。")
看看你是否拥有" virtualenv"你的系统上的命令(你可能会这样做),然后阅读有关如何使用它的信息。 (你真的想要它。)
答案 1 :(得分:0)
使用
升级您的点子pip install --upgrade pip
然后按照https://apple.stackexchange.com/questions/209572/how-to-use-pip-after-the-os-x-el-capitan-upgrade
上的说明操作