【问题标题】:linux : during downloading anaconda jupyter i got these errors [duplicate]linux:在下载anaconda jupyter期间我遇到了这些错误[重复]
【发布时间】:2018-05-06 23:12:51
【问题描述】:
Exception: Traceback (most recent call last):
   File "/home/aman/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
     status = self.run(options, args)
   File "/home/aman/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run     prefix=options.prefix_path,
   File "/home/aman/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install     **kwargs
   File "/home/aman/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
   File "/home/aman/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files     isolated=self.isolated,
   File "/home/aman/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files     clobber(source, lib_dir, True)
   File "/home/aman/.local/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber     shutil.copyfile(srcfile, destfile)
   File "/usr/lib/python2.7/shutil.py", line 83, in copyfile     with open(dst, 'wb') as fdst: IOError: [Errno 13] 
Permission denied: '/usr/local/lib/python2.7/dist-packages/_scandir.so'

【问题讨论】:

  • 你试过sudo吗?
  • 下载前使用sudo
  • 尝试 sudo su 然后 conda install jupyter
  • 有一百个问题的答案是“使用 sudo”。

标签: python linux python-2.7 ubuntu


【解决方案1】:

这与权限有关,因此您需要是sudoer或超级用户。

尝试使用 sudo 前缀的命令。

sudo <YOURCOMMAND>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多