Windows10下命令提示符安装Streamlit失败求助
Windows10下安装Streamlit遇PyArrow编译CMake模块缺失问题
在Windows10系统通过命令提示符安装Streamlit时,出现PyArrow编译过程中CMake模块缺失的报错,具体错误信息如下:
-- Running cmake for PyArrow cmake -DCMAKE_INSTALL_PREFIX=C:\Users\User\AppData\Local\Temp\pip-install-pwbeeskl\pyarrow_8c168365fb834610b6af613231c7cdc8\build\lib.win-amd64-cpython-312\pyarrow -DPYTHON_EXECUTABLE=C:\Users\User\AppData\Local\Programs\Python\Python312\python.exe -DPython3_EXECUTABLE=C:\Users\User\AppData\Local\Programs\Python\Python312\python.exe -DPYARROW_CXXFLAGS= -G "Visual Studio 15 2017 Win64" -DPYARROW_BUILD_CUDA=off -DPYARROW_BUILD_SUBSTRAIT=off -DPYARROW_BUILD_FLIGHT=off -DPYARROW_BUILD_GANDIVA=off -DPYARROW_BUILD_ACERO=off -DPYARROW_BUILD_DATASET=off -DPYARROW_BUILD_ORC=off -DPYARROW_BUILD_PARQUET=off -DPYARROW_BUILD_PARQUET_ENCRYPTION=off -DPYARROW_BUILD_GCS=off -DPYARROW_BUILD_S3=off -DPYARROW_BUILD_HDFS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release C:\Users\User\AppData\Local\Temp\pip-install-pwbeeskl\pyarrow_8c168365fb834610b6af613231c7cdc8 Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\User\AppData\Local\Programs\Python\Python312\Scripts\cmake.exe\__main__.py", line 4, in <module> ModuleNotFoundError: No module named 'cmake' error: command 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\cmake.exe' failed with exit code 1 [end of output]
注:该错误源自子进程,大概率与pip无关。
ERROR: Failed building wheel for pyarrow Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects
已尝试的操作:
- 用
pip install命令单独安装pyarrow,失败 - 通过pip安装cmake后,仍无法完成Streamlit安装
Streamlit用于我的机器学习项目部署。
内容的提问来源于stack exchange,提问作者Aiswarya George
相关产品推荐
相关产品推荐

