我无法安装 pyarrow 和 Streamlit,我已经尝试过了 我尝试安装
在 pyarrow 和 Streamlit 上仍然出现同样的错误
这是streamlit的完整错误
creating C:\Users\CA6988\AppData\Local\Temp\pip-install-rdioavy1\pyarrow_68d4936b97c944838372666da02b0879\build\temp.win-amd64-cpython-312
-- Running cmake for PyArrow
cmake -DCMAKE_INSTALL_PREFIX=C:\Users\CA6988\AppData\Local\Temp\pip-install-rdioavy1\pyarrow_68d4936b97c944838372666da02b0879\build\lib.win-amd64-cpython-312\pyarrow -DPYTHON
_EXECUTABLE=C:\Users\CA6988\AppData\Local\Programs\Python\Python312\python.exe -DPython3_EXECUTABLE=C:\Users\CA6988\AppData\Local\Programs\Python\Python312\python.exe -DPYARROW_CXX
FLAGS= -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 -DPY
ARROW_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_HD
FS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release C:\Users\CA6988\AppData\Local\Temp\pip-install-rdioavy1\pyarrow_68d4936b97c944838372666da02b0879
CMake Error at CMakeLists.txt:22 (project):
Generator
Visual Studio 15 2017 Win64
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with 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
这是 pyarrow 的完整错误
Building wheel for pyarrow (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyarrow (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [297 lines of output]
- Running cmake for PyArrow
cmake -DCMAKE_INSTALL_PREFIX=C:\Users\CA6988\AppData\Local\Temp\pip-install-dr5p7p2s\pyarrow_b72618e712c24bd6a4a07b35825a1199\build\lib.win-amd64-cpython-312\pyarrow -DPYTHON
_EXECUTABLE=C:\Users\CA6988\AppData\Local\Programs\Python\Python312\python.exe -DPython3_EXECUTABLE=C:\Users\CA6988\AppData\Local\Programs\Python\Python312\python.exe -DPYARROW_CXX
FLAGS= -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 -DPY
ARROW_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_HD
FS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release C:\Users\CA6988\AppData\Local\Temp\pip-install-dr5p7p2s\pyarrow_b72618e712c24bd6a4a07b35825a1199
CMake Error at CMakeLists.txt:22 (project):
Generator
Visual Studio 15 2017 Win64
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with 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
我想安装streamlit和pyarrow,但是无论我下载不同版本、强制重装、或者直接安装或卸载python和pycharm,错误都是一致的。
3.12 上还没有 pyarrow 的轮子,目前正在发布 14.0.0,它将附带 3.12 的轮子。因此,您可以降级您的 python 版本,这应该允许您使用现有的轮子,或者等待 14.0.0。
如果您只想使用 pyarrow,我不建议您使用更复杂的变体,即按照开发文档从源代码手动构建 pyarrow(以及可能的 libarrow):https://arrow.apache.org/docs/developers/ python.html