ModuleNotFoundError:没有名为“pyarrow.lib”的模块

Add*_*ddy 4 python pyarrow facebook-prophet streamlit

这是完整的错误消息。

Traceback (most recent call last):
  File "C:\Users\adi\OneDrive\Desktop\Python310\machine learning project.py", line 3, in <module>
    import streamlit as st
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\__init__.py", line 70, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\delta_generator.py", line 19, in <module>
    from streamlit import cursor, caching
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\cursor.py", line 18, in <module>
    from streamlit.scriptrunner import get_script_run_ctx
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\scriptrunner\__init__.py", line 16, in <module>
    from .script_runner import (
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 35, in <module>
    from streamlit.state import (
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\state\__init__.py", line 27, in <module>
    from .session_state_proxy import (
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\state\session_state_proxy.py", line 24, in <module>
    from streamlit.type_util import Key
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\type_util.py", line 22, in <module>
    import pyarrow as pa
  File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\pyarrow\__init__.py", line 65, in <module>
    import pyarrow.lib as _lib
Run Code Online (Sandbox Code Playgroud)

我正在使用 Streamlit 进行一个项目,但无法解决这个问题。我尝试卸载并重新安装streamlit,但这没有帮助。

我使用Python 3.8

Jus*_*ris 7

卸载并重新安装为我解决了这个问题:

pip uninstall pyarrow
pip install pyarrow
Run Code Online (Sandbox Code Playgroud)

我认为我在 Conda 环境中更改了 Python 版本,把事情搞砸了。