简体   繁体   English

在python2.7上安装parallel-ssh

[英]Installing parallel-ssh on python2.7

I am trying to install parallel-ssh on python2.7 . 我正在尝试在python2.7上安装parallel-ssh My use-case for using this is to make an ssh connection run in parallel and not let it block further execution of a python file. 我用的用例是使ssh连接并行运行,而不是阻止python文件的进一步执行。 I used the following command, 我使用了以下命令,

pip install parallel-ssh

But, I am getting the following error, 但是,我收到以下错误,

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 30: ordinal not in range(128)

I tried searching for ways to rectify this. 我试图寻找纠正方法。 I am not very clear on what to do and need some guidance regarding the same. 我不太清楚该怎么做,因此需要一些指导。

Yes, this is an issue with old versions of pip. 是的,这是旧版pip的问题。

pip install -U pip
pip install parallel-ssh

This will update pip and then parallel-ssh installation can proceed. 这将更新pip,然后可以继续进行并行ssh安装。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM