incapaz de atualizar o pip no Python 3.4

0

Eu vi o grande número de postagens já postadas; no entanto, nenhum deles tem esse mesmo erro. Então eu queria re-postar isso. Estou executando o seguinte comando: pip3 install --upgrade pip

Eu recebo o seguinte erro:

Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Not uninstalling pip at /usr/lib/python3/dist-packages, owned by OS
  Can't roll back pip; was not uninstalled
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 206, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 193, in clobber
    os.makedirs(destsubdir)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/pip'

Storing debug log for failure in /home/Usass/.pip/pip.log

Eu tenho python3.4 e estou tentando executar este comando do bash no windows. O objetivo final é baixar Jupyter .

    
por Jonathan 27.04.2017 / 03:06

1 resposta

2

Experimente sudo pip3 install --upgrade pip

A última linha no log de erros diz claramente que é uma questão de permissões inadequadas. PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/pip'

    
por Shagun Sodhani 30.04.2017 / 14:50