Paramiko 会被移植到 Python 3.x 吗?

编程入门 行业动态 更新时间:2024-10-23 06:28:49
本文介绍了Paramiko 会被移植到 Python 3.x 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

似乎需要移植 PyCrypt 才能实现这一点.自己做很难吗?

Seems to be that PyCrypt is required to be ported, in order to make that happen. Is it hard to do yourself?

推荐答案

您可以尝试使用 2to3 随 Python 2.7 一起提供,用于将项目源转换为 Python 3 兼容代码.然后,只需对您转换的包运行一些测试,看看它们是否有效.

You can try using 2to3, which comes with Python 2.7, to convert the source of projects to Python 3 compliant code. Then, just run some tests on the packages you converted and see if they work.

大部分主要工作会在2to3之前完成,之后如果需要,您可以进行微调调整以确保一切正常.

Most of the major work will be done by 2to3, and after that you can make fine-tuned adjustments if you need to to make everything work well.

至于 Paramiko 和 PyCrypt 被移植到 Py3K,可能不会.PyCrypt 的最后一个版本是在 2007 年,而 Paramiko 的最后一个版本是在 2009 年 11 月.所以,你最好自己尝试一下(当然,与世界其他地方分享结果!).

As for Paramiko and PyCrypt being ported over to Py3K, probably not. The last release of PyCrypt was in 2007 and the last release of Paramiko was in November 2009. So, you'd be best off trying to do it yourself (and, of course, sharing the results with the rest of the world!).

更多推荐

Paramiko 会被移植到 Python 3.x 吗?

本文发布于:2023-10-07 14:28:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469632.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Paramiko   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!