小编cha*_*cui的帖子

气流 initdb:未定义符号:Py_GetArgcArgv

我按照文档安装了 Apache-airflow。https://airflow.apache.org/docs/stable/start.html

当我执行airflow initdb时,每次都会出现错误。

x-MacBook-Pro:~ x$ airflow initdb
 ......
import airflow.utils.dag_processing
  File "/Library/Python/3.7/site-packages/airflow/utils/dag_processing.py", line 40, in <module>
    from setproctitle import setproctitle
ImportError: dlopen(/Library/Python/3.7/site-packages/setproctitle.cpython-37m-darwin.so, 2): Symbol not found: _Py_GetArgcArgv
  Referenced from: /Library/Python/3.7/site-packages/setproctitle.cpython-37m-darwin.so
  Expected in: flat namespace
 in /Library/Python/3.7/site-packages/setproctitle.cpython-37m-darwin.so
Run Code Online (Sandbox Code Playgroud)

一个答案表明这是二进制包的问题。但我仍然不知道如何解决这个问题。这是链接https://github.com/psycopg/psycopg2/issues/807

MacOSX 10.15.3

点 20.0.2

蟒蛇 3.7.3

python macos python-wheel

7
推荐指数
1
解决办法
3716
查看次数

标签 统计

macos ×1

python ×1

python-wheel ×1