首页 文章

pip install netmiko错误

提问于
浏览
-3

sudo -H pip install netmiko收集netmiko

----

安装收集的软件包:setuptools,idna,ipaddress,enum34,cryptography,paramiko,scp,pyyaml,netmiko找到现有安装:setuptools 1.1.6卸载setuptools-1.1.6:异常:Traceback(最近一次调用最后一次):File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/basecommand.py",line 215,在主状态= self.run(options,args)文件"/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/commands/install.py",第317行,在运行前缀= options.prefix_path,文件"/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_set.py",第736行,在安装要求.uninstall(auto_confirm = True)文件"/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_install.py",第742行,在卸载paths_to_remove.remove(auto_confirm)文件"/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_uninstall.py",第115行,删除重命名(path,new_path)文件“/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/utils / init .py ", line 267, in renames shutil.move(old, new) File " /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py ", line 299, in move copytree(src, real_dst, symlinks=True) File " /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /shutil.py“,第208行,在copytree中引发错误,错误错误:[('/ System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ init .py ', ' /tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ init .py ', "[Errno 1] Operation not permitted: ' / tmp / pip-pmkwdi-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 ', ' / tmp /pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ init .pyc ', "[Errno 1] Operation not permitted: ' / tmp / pip-pmkwdi-uninstall / System / Library / Frameworks / Python . framework / Versions / 2.7 / Extras / lib / python / _markerlib / init .pyc ' 463120 [Errno 1] Operation not permitted: ' /tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers .py ' 463121 [Errno 1] Operation not permitted: ' /tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc ' 463122 [Errno 1] Operation not permitted: ' / tmp / pip-pmkwdi-uninstall / System / Library /Frameworks/Python.framework/Versions/2 0.7 /附加/ LIB /蟒/ _markerlib“')]

1 回答

  • 1

    是的,我首先要从MacOS系统Python中解耦(即从系统Python安装一个单独的Python) .

    http://docs.python-guide.org/en/latest/starting/install/osx/

    然后使用该Python安装Netmiko(或在virtualenv中安装它) .

    如果您仍然遇到问题,请在Netmiko GitHub页面上创建一个问题 .

相关问题