在python虚拟环境上安装气流

时间:2019-05-13 13:45:45

标签: python python-3.x airflow python-venv

我正在使用PyCharm并使用python3创建了一个虚拟环境。在那个venv中,尝试安装气流时出现错误。为了在python venv中运行气流,我需要做什么?

pip install apache-airflow

Installing build dependencies ... error
 ERROR: Complete output from command /Users/***/venv/bin/python /Users/***/venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/p4/dd2h8vlx65z2v2z7vmjy9gtc0000gn/T/pip-build-env-sp6buhf3/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel:
 ERROR: Traceback (most recent call last):
   File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
     "__main__", mod_spec)
   File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
     exec(code, run_globals)
   File "/Users/***/venv/lib/python3.7/site-packages/pip/__main__.py", line 16, in <module>
     from pip._internal import main as _main  # isort:skip # noqa
   File "/Users/***/venv/lib/python3.7/site-packages/pip/_internal/__init__.py", line 4, in <module>
     import locale
   File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/locale.py", line 16, in <module>
     import re
   File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
     class RegexFlag(enum.IntFlag):
 AttributeError: module 'enum' has no attribute 'IntFlag'
ERROR: Command "/Users/***/venv/bin/python /Users/***/venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/p4/dd2h8vlx65z2v2z7vmjy9gtc0000gn/T/pip-build-env-sp6buhf3/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel" failed with error code 1 in None

0 个答案:

没有答案