[ 
https://issues.apache.org/jira/browse/ARROW-11151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260035#comment-17260035
 ] 

Ian Cook commented on ARROW-11151:
----------------------------------

This error was occurring because I had two separate Python 3 installs:
 * The Python 3.8.2 install that ships with Big Sur
 * A Python 3.9.1 install that I installed with {{python-3.9.1-macosx10.9.pkg}} 
downloaded from [python.org/downloads|https://www.python.org/downloads]

After I removed the latter, the error stopped occurring.

> [Python][Packaging] Fix Homebrew Install Python 3 NumPy not found failure
> -------------------------------------------------------------------------
>
>                 Key: ARROW-11151
>                 URL: https://issues.apache.org/jira/browse/ARROW-11151
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Packaging, Python
>            Reporter: Ian Cook
>            Priority: Major
>
> {{brew install apache-arrow --HEAD}} fails when there is no existing 
> installation of NumPy.
> {code:java}
> CMake Error at 
> /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218
>  (message):
>   Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found
>   version "3.9.1")
> Call Stack (most recent call first):
>   
> /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:582
>  (_FPHSA_FAILURE_MESSAGE)
>   
> /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPython/Support.cmake:3148
>  (find_package_handle_standard_args)
>   /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPython3.cmake:398 
> (include)
>   cmake_modules/FindPython3Alt.cmake:55 (find_package)
>   src/arrow/python/CMakeLists.txt:22 (find_package)
> {code}
> Workaround is to first install NumPy with {{pip3 install numpy}}.
> Tested in macOS Big Sur 11.1 on an Intel Mac with
>  {{python}} --> Python 2.7.16
>  {{python3}} --> Python 3.9.1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to