Ubuntu安装Python库(TA-Lib, aio_pika, orjson, sqlalchemy_aio, psycopg2, rabbitMQ等)

Ubuntu18.04安装一些较麻烦的Python第三方库

由于工作中会比较常用以下的第三方库,直接pip安装会报错,现总结一下(网上的教程鱼龙混杂),亲测ok

安装aio_pika

比较麻烦,ubuntu16.04默认安装的是python3.5.2
如果直接sudo pip install aio_pika会报错
AttributeError: module ‘typing’ has no attribute ‘Coroutine’
如果在python3.6安装就不会出问题,看来是python3.5的typing库里缺少Coroutine

“The documentation you refer to is for version 3.5.3. RajSubit seemed to have verified that everything works as expected for 3.5.3. If you check the documentation for 3.5.2 you’ll see that Coroutine is not mentioned there. Hence the version of your Python distribution and the documentation you referred to just don’t match.”

这个链接说明问题
https://stackoverflow.com/questions/44651115/python-typing-module-missing-the-corout

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值