pip安装netmiko错误
sudo -H pip安装netmiko收集netmiko
----
安装收集的软件包:setuptools,idna,ipaddress,enum34,cryptography,paramiko,scp,pyyaml,netmiko发现现有的安装:setuptools 1.1.6卸载setuptools-1.1.6:异常:追踪(最近一次调用最后):文件“/ Library /Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/basecommand.py“,第215行,在main status = self.run(options,args)文件”/ Library / Python / 2.7 / site-packages / pip-8.1.2-py2.7.egg / pip / commands / install.py“,第317行,在运行prefix = options.prefix_path,File”/Library/Python/2.7/site-packages安装文件“/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)File”/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“, 第267行,在重命名shutil.move(旧的,新的)文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”,第299行,在移动copytree(src, real_dst,symlinks = True)文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”,第208行,在copytree raise中错误,错误错误:[('/ System /Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ 初始化的.py '' /tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/ Extras / lib / python / _markerlib / init .py',“[Errno 1]不允许操作:'/tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/蟒/ _markerlib / 初始化的.py“'),( '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ INIT pyc文件',“/ TMP / PIP-pmkwdi-卸载/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ INIT pyc文件”,“[错误1]操作不允许:“/ TMP / PIP-pmkwdi-uninsta lib / python / _markerlib / init .pyc'“),('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/ lib / python / _markerlib / markers.py','/tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py',“[ Errno 1]不允许操作:'/tmp/pip-pmkwdi-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','/tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/ Extras / lib / python / _markerlib / markers.pyc',“[Errno 1]不允许操作:'/tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/ python / _markerlib / markers.pyc'“),('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib','/ tmp / pip-pmkwdi-uninstall /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib',“[Errno 1] Operation not permitted:'/ tmp / pip-pmkwdi-uninstall / System / Library / Frameworks / Python .framework /版本/ 2.7 /附加/ LIB /蟒/ _markerlib“')]
是的,我会首先从MacOS系统的Python中解耦(即从系统Python安装一个单独的Python)。
http://docs.python-guide.org/en/latest/starting/install/osx/
然后使用该Python安装Netmiko(或将其安装在virtualenv中)。
如果您仍然遇到问题,请在Netmiko GitHub页面上创建问题。
链接地址: http://www.djcxy.com/p/72013.html