pip install netmiko error

时间:2016-06-13 23:53:39

标签: python python-2.7

sudo -H pip install netmiko 收集netmiko

----

安装收集的软件包:setuptools,idna,ipaddress,enum34,cryptography,paramiko,scp,pyyaml,netmiko   找到现有安装:setuptools 1.1.6     卸载setuptools-1.1.6: 例外: Traceback(最近一次调用最后一次):   文件" /Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/basecommand.py" ;,第215行,主要     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,   文件" /Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_set.py" ;,第736行,在安装中     requirement.uninstall(auto_confirm =真)   文件" /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)   File" /Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/utils/ init .py",第267行,in重命名     shutil.move(旧的,新的)   File" /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中     提出错误,错误 错误:[(' /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]不允许操作:' /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&#39 ;,' /tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/ init .pyc' ," [Errno 1]不允许操作:' /tmp/pip-pmkwdi-uninstall/System/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',' /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 /框架/ Python.framework /版本/ 2.7 /附加/ LIB /蟒/ _markerlib' ," [Errno 1]不允许操作:' /tmp/pip-pmkwdi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib' &#34)]

1 个答案:

答案 0 :(得分:1)

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

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

然后使用该Python安装Netmiko(或将其安装在virtualenv中)。

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