0

在 pendulum 的安装过程中,我得到一个 FileNotFoundError 异常。

我多次运行它,但都失败了。它确实为pendulum==2.1.1.

Collecting pendulum==2.1.2 (from -c https://raw.githubusercontent.com/apache/airflow/constraints-main/constraints-3.6.txt (line 354))
  Using cached https://files.pythonhosted.org/packages/db/15/6e89ae7cde7907118769ed3d2481566d05b5fd362724025198bb95faf599/pendulum-2.1.2.tar.gz
  Installing build dependencies ... done
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/jorricks/.pyenv/versions/3.6.13/lib/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/7s/k78t7hcx6g75x9jg8wmj13z40000gn/T/pip-install-xuv35z0w/pendulum/setup.py'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/7s/k78t7hcx6g75x9jg8wmj13z40000gn/T/pip-install-xuv35z0w/pendulum/
You are using pip version 18.1, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
~/Projects/airflow ~/Projects/airflow
#######################################################################
  You had some troubles installing the venv !!!!!
  Try running the command below and rerun virtualenv installation

  brew install sqlite mysql postgresql openssl
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

#######################################################################

ERROR: The previous step completed with error. Please take a look at output above 
4

1 回答 1

2

错误与 pip 版本有关。

只需通过更新 pip pip install --upgrade pip,我就设法解决了我的问题。

于 2021-06-20T15:06:02.173 回答