1、linux 平台

使用 airflow 初始化 “airflow initdb” 时,报psycopg2模块找不到。

安装 psycopg2,报 Failed building wheel for psycopg2

pip install psycopg2 -i https://pypi.douban.com/simple

所以直接安装 psycopg2-binary

pip install psycopg2-binary -i https://pypi.douban.com/simple

 

参考:https://blog.csdn.net/weixin_42539198/article/details/89173240

 

2、windows 平台

将 python 命令和 pip 命令都配置进环境变量PATH

Failed building wheel for psycopg2

 

 Failed building wheel for psycopg2

 

 

---

相关文章:

  • 2021-11-06
  • 2021-11-02
  • 2022-12-23
  • 2022-01-13
  • 2018-05-21
  • 2021-10-12
猜你喜欢
  • 2022-03-03
  • 2021-07-18
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-11-23
  • 2021-09-18
相关资源
相似解决方案