【问题标题】:Installing PyArrow for the purpose of pandas-gbq为 pandas-gbq 安装 PyArrow
【发布时间】:2021-04-22 22:56:17
【问题描述】:

我不知疲倦地尝试通过 pip 安装程序(pip 20.3.3;python 3.9.1)下载 pandas-gbq。每当我 pip install pandas-gbq 时,它会在尝试导入/安装 pyarrow 时出错。

我通过测试“pip install pyarrow”本身进一步验证了 PyArrow 遇到问题的理论。这有同样的错误。如果需要,我可以发布部分错误,但它有数千行长,我什至无法确定错误是什么。我有 64 位 python、64 位 pycharm、64 位机器等。

以前有没有人遇到过这个问题。我的解决方案是下载 Anaconda 并且我能够 conda install pyarrow,但我真的不明白这一切的问题是什么。为了使问题进一步复杂化,我可以通过在 cmd.exe 中运行位于 PyCharm 创建的 venv 中的 python 项目来利用 pandas-gbq,但是我无法在 PyCharm 控制台中运行它。

当我尝试在 PyCharm 中重新配置我的 python 解释器时,它只是说它找不到项目的路径。很多困惑,不胜感激!

【问题讨论】:

标签: installation google-bigquery pycharm pyarrow


【解决方案1】:

我自己也遇到过同样的问题, 对我有用的是用 pip 重新安装它并重新启动 Jupyter notebook

您也可以尝试使用 conda 重新安装它

conda install -c conda-forge pyarrow

根据下面的这个答案,对于类似的问题,这似乎涵盖了这种情况

Error importing pyarrow in jupyter notebook after pip installation of pyarrow

【讨论】:

    猜你喜欢
    • 2019-08-28
    • 2022-01-16
    • 2022-06-10
    • 1970-01-01
    • 2018-12-15
    • 1970-01-01
    • 2021-09-13
    • 2019-12-03
    • 2021-03-14
    相关资源
    最近更新 更多