我不能安装pyarrow和streamlit,我已经尝试过我尝试安装
- Python 3.12.0的最新版本
- Pyarrow 9.0.0,因为最新版本不起作用
- CMake
- 轮
- setuptools
- 诗歌
仍然是同样的错误,在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,错误也是一致的。
2条答案
按热度按时间sulc1iza1#
Pyarrow在3.12上还没有轮子,14.0.0目前正在发布,它将带有3.12的轮子。所以你可以降级你的Python版本,这样你就可以使用现有的轮子,或者等待14.0.0。
如果你只是想使用pyarrow,我不推荐一个更复杂的变体,那就是按照开发文档从源代码手动构建pyarrow(可能还有libarrow):https://arrow.apache.org/docs/developers/python.html
70gysomp2#
pyarrow
14.0.0于11月1日发布Arrow 14.0.0刚刚在PyPI上发布,带有Python 3.12的轮子。
字符串
https://github.com/apache/arrow/issues/37880
的数据