【问题标题】:Installing dbt using pip on a drive that is not C:在非 C 驱动器上使用 pip 安装 dbt:
【发布时间】:2021-04-25 23:38:33
【问题描述】:

我正在尝试使用 pip 安装 dbt 包。我无法完成安装并收到此错误;


     ERROR: Command errored out with exit status 1:
       command: 'd:\cx\new c\dbt-env\scripts\python.exe' 'd:\cx\new c\dbt-env\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Tosh\AppData\Local\Temp\pip-build-env-5ns7y0k2\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel cython 'pyarrow>=0.17.0,<0.18.0'
           cwd: None

我认为问题是我在 D 驱动器上安装了 python,而不是在 C 驱动器上安装了 SSD。如果我是正确的并且这就是问题所在,我想在驱动器 D 中维护这个安装。我该如何解决这个问题?

【问题讨论】:

    标签: python dbt


    【解决方案1】:

    您可以创建虚拟环境并在其中安装dbt。

    python -m venv venv
    
    # windows
    ./venv/scripts/activate
    
    # Linux
    source /venv/bin/activate 
    
    pip install dbt
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-14
      • 2011-01-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多