pycharm 模块不能升级就算了,为什么卸载还失败?!!!

US13032530 2015-12-29 08:23:18
今天跑个爬虫报错了 提示如下:
    from six.moves import xmlrpc_client as xmlrpclib
ImportError: cannot import name xmlrpc_client


好的 这个six模块出问题了 我就想是不是版本太低或者删了重装吧,问题来了!


目前版本1.40 最新的1.10.0


原因看不懂:0:286: execution error: Uninstalling six:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/uninstall.py", line 59, in run
requirement_set.uninstall(auto_confirm=options.yes)
File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1035, in uninstall
req.uninstall(auto_confirm=auto_confirm)
File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 598, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1836, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 295, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/4z/f363zmj51cd92484t8wz00700000gn/T/pip-WZQcid-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

Storing debug log for failure in /Users/zoutao/Library/Logs/pip.log (2)

反正现在删除不掉,卡在这里了,系统自带的six倒是1.10.0版本



请教各位现在该怎么办?


...全文
851 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
jaycicle 2016-05-25
  • 打赏
  • 举报
回复
我这样解决的: 原因是因为osx新系统的保护机制 重启电脑 -->按住command + r 进入恢复模式--->点击屏幕左上角使用工具进入终端--->输入csrutil disable --->重启电脑 解决O(∩_∩)O~ 这样关闭了mac sip安全设置 如果想重启的话同样步骤 在终端输入 csrutil enable就OK
jaycicle 2016-05-25
  • 打赏
  • 举报
回复
遇到一样的问题 sudo也卸载不了 楼主怎么解决的最后
CDSoftwareWj 2016-05-25
  • 打赏
  • 举报
回复
Orz 楼主你这是炫富知道不?
6facebeast 2016-05-25
  • 打赏
  • 举报
回复
好高端,我一直都在用记事本写代码,所以不知道0 0
linzertling 2016-01-05
  • 打赏
  • 举报
回复
没用过pycharm,楼主是用的免费激活版的吗?
willhuo 2015-12-31
  • 打赏
  • 举报
回复
安装了以后,应该有个路径,不知道能否直接找到相应路径,把文件手动删除了。
US13032530 2015-12-29
  • 打赏
  • 举报
回复
试了很多rm方法 都是Operation not permitted
sprawling 2015-12-29
  • 打赏
  • 举报
回复
直接删除不行吗

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧