Skip to content

Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIR NumPy) (found version "3.7.4") #22

@cnwangfeng

Description

@cnwangfeng

I use Anaconda 2019.07 as python environment. Cmake version is 3.15.3.
When I try to install with "brew install casacore", it reports "Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIR NumPy) (found
version "3.7.4")"

Thanks.

Feng

(base) fwang-lt:Modules wangfeng$ brew install casacore
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
zim

==> Installing casacore from ska-sa/tap
==> Downloading https://github.com/casacore/casacore/archive/v3.1.1.tar.gz
Already downloaded: /Users/wangfeng/Library/Caches/Homebrew/downloads/3b570ca11953847e1fc2a5b18bc8e9593f9ee563b6aa9a505cb07298fc46514b--casacore-3.1.1.tar.gz
==> Patching
patching file python/CMakeLists-cmake3.12.txt
patching file python3/CMakeLists-cmake3.12.txt
patching file python/Converters/test/CMakeLists.txt
==> cmake ../.. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/cas
Last 15 lines from /Users/wangfeng/Library/Logs/Homebrew/casacore/01.cmake:
-- Looking for python3 specific environment...
CMake Error at /usr/local/Cellar/cmake/3.15.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIR NumPy) (found
version "3.7.4")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.15.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.15.3/share/cmake/Modules/FindPython/Support.cmake:1653 (find_package_handle_standard_args)
/usr/local/Cellar/cmake/3.15.3/share/cmake/Modules/FindPython3.cmake:215 (include)
python3/CMakeLists-cmake3.12.txt:3 (find_package)
python3/CMakeLists.txt:4 (include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions