简体   繁体   English

如果没有.deb包,并且pip安装特定版本不起作用,如何从Paramiko 1.16.0更新到1.16.1

[英]How to update from Paramiko 1.16.0 to 1.16.1 if there is no .deb package for it and pip install specific version doesn't work

I need to update paramiko 1.16.0 to 1.16.1 but I can't find a .deb package and pip3 install paramiko==1.16.1 gives an error. 我需要更新paramiko 1.16.0到1.16.1但我找不到.deb包和pip3安装paramiko == 1.16.1给出错误。

I've already tried pip3 install --upgrade paramiko==1.16.1 and I can't find a .deb package for 1.16.1 anywhere. 我已经尝试过pip3 install --upgrade paramiko == 1.16.1而且我无法在任何地方找到1.16.1的.deb包。 I'm running Ubuntu 14.04 我正在运行Ubuntu 14.04

this is the error I receive when trying to upgrade with pip3 这是我尝试使用pip3升级时收到的错误

berryhp@C001812114:~/clones/testcommander/tests$ pip3 install --upgrade paramiko==1.16.1
Downloading/unpacking paramiko==1.16.1
  Downloading paramiko-1.16.1-py2.py3-none-any.whl (170kB): 170kB downloaded
Downloading/unpacking ecdsa>=0.11 (from paramiko==1.16.1)
  Downloading ecdsa-0.13.2-py2.py3-none-any.whl (59kB): 59kB downloaded
Requirement already up-to-date: pycrypto!=2.4,>=2.1 in /usr/lib/python3/dist-packages (from paramiko==1.16.1)
Installing collected packages: paramiko, ecdsa
  Found existing installation: paramiko 1.16.0
    Not uninstalling paramiko at /usr/lib/python3/dist-packages, owned by OS
  Can't roll back paramiko; 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/paramiko-1.16.1.dist-info'

Storing debug log for failure in /tmp/tmpd0xunwr_

我最后只是通过从http://security.ubuntu.com/ubuntu/pool/main/p/paramiko/python3-paramiko_2.4.2-0.1ubuntu1_all.deb安装.deb来更新到paramiko 2.4.2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Vagrant + Chef + apt:是否可以在Ubuntu VM上安装特定版本的deb软件包? - Vagrant + Chef + apt: Is it possible to install a specific version of a deb package on a Ubuntu VM? Puppet不使用新的deb源安装R的最新版本 - Puppet doesn't use new deb source to install latest version of R 我怎么知道要安装哪个版本的 pip package? - How can I know which version of pip package to install? 如何在Ubuntu上通过pip安装python3版本的package? - How to install python3 version of package via pip on Ubuntu? 如何在Ubuntu 16.04 LTS中安装pip3和paramiko? - How to install pip3 and paramiko in ubuntu 16.04 LTS? 如何在Ubuntu上为Python3安装python deb软件包? - How do I install a python deb package for Python3 on Ubuntu? 如何使用单个 linux 命令按特定顺序安装多个.deb 文件 - How to install multiple .deb files but in specific order with single linux command APT:安装特定版本的包 - APT: install specific version of a package 点安装<python_package>塞住了。 弹出从 pip==9.0.1 升级到 pip==19.0.3 的消息。 如何使用 pip 9.0.1 安装任何新软件包? - pip install <python_package> is stuck. Message to upgrade from pip==9.0.1 to pip==19.0.3 pops up. How to install any new packages using pip 9.0.1? 使用命令行选项构建Deb软件包版本 - Build deb package version with command line option
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM