在python 2.7上安装asyncio和asyncssh

时间:2016-05-17 10:35:58

标签: python python-2.7 python-asyncio

我想使用sshpython2.7asyncio运行多个asyncssh个关联。为了了解如何安装这些软件包,我发现我的python版本应为python3或更高版本,我需要安装trollius来运行asyncio个函数使用python2.7。如果我需要使用asyncssh使用python2.7函数,我应该遵循哪些步骤,我需要处理哪些依赖项?

1 个答案:

答案 0 :(得分:5)

asyncssh needs Python 3.4+, what strictly specified in it's requirements.

trollius is not a full replacement for asyncio and can't be used for most asyncio based modules you might need in your project.

So, if you're going to start new project with asyncio (and asyncssh), it's a good chance to start it using Python 3.