Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing conda on mac for neural network exercises #8

Open
Mathildekrafft2001 opened this issue Mar 17, 2025 · 0 comments
Open

Installing conda on mac for neural network exercises #8

Mathildekrafft2001 opened this issue Mar 17, 2025 · 0 comments

Comments

@Mathildekrafft2001
Copy link


> library(reticulate)
> use_miniconda("MLBA", required = TRUE)
Warning: Previous request to `use_python("/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/bin/python3.10", required = TRUE)` will be ignored. It is superseded by request to `use_python("/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/bin/python")
> py_config()
python:         /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/bin/python
libpython:      /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/libpython3.10.dylib
pythonhome:     /Users/mathildekrafft/Library/r-miniconda/envs/MLBA:/Users/mathildekrafft/Library/r-miniconda/envs/MLBA
version:        3.10.16 | packaged by conda-forge | (main, Dec  5 2024, 14:12:04) [Clang 18.1.8 ]
numpy:          /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/numpy
numpy_version:  1.26.4

NOTE: Python version was forced by use_python() function
> keras::install_keras(method = "conda", envname = "MLBA")
2025-03-17 10:37:23.158644: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
+ . /Users/mathildekrafft/Library/r-miniconda/bin/activate
+ conda activate 'MLBA'
+ '/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/bin/python' -m pip install --upgrade --no-user 'tensorflow==2.15.*' tensorflow-hub tensorflow-datasets scipy requests Pillow h5py pandas pydot
Collecting tensorflow==2.15.*
  Using cached tensorflow-2.15.1-cp310-cp310-macosx_10_15_x86_64.whl.metadata (4.0 kB)
Collecting tensorflow-hub
  Using cached tensorflow_hub-0.16.1-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting tensorflow-datasets
  Using cached tensorflow_datasets-4.9.8-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: scipy in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (1.15.2)
Requirement already satisfied: requests in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (2.32.3)
Requirement already satisfied: Pillow in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (11.1.0)
Requirement already satisfied: h5py in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (3.13.0)
Requirement already satisfied: pandas in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (2.2.3)
Collecting pydot
  Using cached pydot-3.0.4-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: absl-py>=1.0.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (1.6.3)
Requirement already satisfied: flatbuffers>=23.5.26 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (25.2.10)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (0.6.0)
Requirement already satisfied: google-pasta>=0.1.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (0.2.0)
Requirement already satisfied: libclang>=13.0.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (18.1.1)
Requirement already satisfied: ml-dtypes~=0.3.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (0.3.2)
Requirement already satisfied: numpy<2.0.0,>=1.23.5 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (1.26.4)
Requirement already satisfied: opt-einsum>=2.3.2 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (3.4.0)
Requirement already satisfied: packaging in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (24.2)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (4.25.6)
Requirement already satisfied: setuptools in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (75.8.2)
Requirement already satisfied: six>=1.12.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (1.17.0)
Requirement already satisfied: termcolor>=1.1.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (2.5.0)
Requirement already satisfied: typing-extensions>=3.6.6 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (4.12.2)
Collecting wrapt<1.15,>=1.11.0 (from tensorflow==2.15.*)
  Using cached wrapt-1.14.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata (6.7 kB)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (0.37.1)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow==2.15.*) (1.71.0)
Collecting tensorboard<2.16,>=2.15 (from tensorflow==2.15.*)
  Using cached tensorboard-2.15.2-py3-none-any.whl.metadata (1.7 kB)
Collecting tensorflow-estimator<2.16,>=2.15.0 (from tensorflow==2.15.*)
  Using cached tensorflow_estimator-2.15.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting keras<2.16,>=2.15.0 (from tensorflow==2.15.*)
  Using cached keras-2.15.0-py3-none-any.whl.metadata (2.4 kB)
Collecting tf-keras>=2.14.1 (from tensorflow-hub)
  Using cached tf_keras-2.19.0-py3-none-any.whl.metadata (1.8 kB)
Collecting dm-tree (from tensorflow-datasets)
  Using cached dm_tree-0.1.9.tar.gz (35 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting etils>=1.6.0 (from etils[edc,enp,epath,epy,etree]>=1.6.0; python_version < "3.11"->tensorflow-datasets)
  Using cached etils-1.12.2-py3-none-any.whl.metadata (6.5 kB)
Collecting immutabledict (from tensorflow-datasets)
  Using cached immutabledict-4.2.1-py3-none-any.whl.metadata (3.5 kB)
Collecting promise (from tensorflow-datasets)
  Using cached promise-2.3-py3-none-any.whl
Requirement already satisfied: psutil in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow-datasets) (7.0.0)
Collecting pyarrow (from tensorflow-datasets)
  Using cached pyarrow-19.0.1-cp310-cp310-macosx_12_0_x86_64.whl.metadata (3.3 kB)
Collecting simple_parsing (from tensorflow-datasets)
  Using cached simple_parsing-0.1.7-py3-none-any.whl.metadata (7.3 kB)
Collecting tensorflow-metadata (from tensorflow-datasets)
  Using cached tensorflow_metadata-1.16.1-py3-none-any.whl.metadata (2.4 kB)
Collecting toml (from tensorflow-datasets)
  Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
Requirement already satisfied: tqdm in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorflow-datasets) (4.67.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from requests) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from requests) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from requests) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from requests) (2025.1.31)
Requirement already satisfied: python-dateutil>=2.8.2 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from pandas) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from pandas) (2025.1)
Requirement already satisfied: tzdata>=2022.7 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from pandas) (2025.1)
Requirement already satisfied: pyparsing>=3.0.9 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from pydot) (3.2.1)
Requirement already satisfied: wheel<1.0,>=0.23.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from astunparse>=1.6.0->tensorflow==2.15.*) (0.45.1)
Collecting einops (from etils[edc,enp,epath,epy,etree]>=1.6.0; python_version < "3.11"->tensorflow-datasets)
  Using cached einops-0.8.1-py3-none-any.whl.metadata (13 kB)
Collecting fsspec (from etils[edc,enp,epath,epy,etree]>=1.6.0; python_version < "3.11"->tensorflow-datasets)
  Using cached fsspec-2025.3.0-py3-none-any.whl.metadata (11 kB)
Collecting importlib_resources (from etils[edc,enp,epath,epy,etree]>=1.6.0; python_version < "3.11"->tensorflow-datasets)
  Using cached importlib_resources-6.5.2-py3-none-any.whl.metadata (3.9 kB)
Collecting zipp (from etils[edc,enp,epath,epy,etree]>=1.6.0; python_version < "3.11"->tensorflow-datasets)
  Using cached zipp-3.21.0-py3-none-any.whl.metadata (3.7 kB)
Collecting google-auth<3,>=1.6.3 (from tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached google_auth-2.38.0-py2.py3-none-any.whl.metadata (4.8 kB)
Collecting google-auth-oauthlib<2,>=0.5 (from tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached google_auth_oauthlib-1.2.1-py2.py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: markdown>=2.6.8 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorboard<2.16,>=2.15->tensorflow==2.15.*) (3.7)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorboard<2.16,>=2.15->tensorflow==2.15.*) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from tensorboard<2.16,>=2.15->tensorflow==2.15.*) (3.1.3)
INFO: pip is looking at multiple versions of tf-keras to determine which version is compatible with other requirements. This could take a while.
Collecting tf-keras>=2.14.1 (from tensorflow-hub)
  Using cached tf_keras-2.18.0-py3-none-any.whl.metadata (1.6 kB)
  Using cached tf_keras-2.17.0-py3-none-any.whl.metadata (1.6 kB)
  Using cached tf_keras-2.16.0-py3-none-any.whl.metadata (1.6 kB)
  Using cached tf_keras-2.15.1-py3-none-any.whl.metadata (1.7 kB)
Requirement already satisfied: attrs>=18.2.0 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from dm-tree->tensorflow-datasets) (25.3.0)
Collecting docstring-parser<1.0,>=0.15 (from simple_parsing->tensorflow-datasets)
  Using cached docstring_parser-0.16-py3-none-any.whl.metadata (3.0 kB)
Collecting protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 (from tensorflow==2.15.*)
  Using cached protobuf-3.20.3-py2.py3-none-any.whl.metadata (720 bytes)
Collecting cachetools<6.0,>=2.0.0 (from google-auth<3,>=1.6.3->tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached cachetools-5.5.2-py3-none-any.whl.metadata (5.4 kB)
Collecting pyasn1-modules>=0.2.1 (from google-auth<3,>=1.6.3->tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached pyasn1_modules-0.4.1-py3-none-any.whl.metadata (3.5 kB)
Collecting rsa<5,>=3.1.4 (from google-auth<3,>=1.6.3->tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached rsa-4.9-py3-none-any.whl.metadata (4.2 kB)
Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<2,>=0.5->tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: MarkupSafe>=2.1.1 in /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages (from werkzeug>=1.0.1->tensorboard<2.16,>=2.15->tensorflow==2.15.*) (3.0.2)
Collecting pyasn1<0.7.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached pyasn1-0.6.1-py3-none-any.whl.metadata (8.4 kB)
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<2,>=0.5->tensorboard<2.16,>=2.15->tensorflow==2.15.*)
  Using cached oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB)
Using cached tensorflow-2.15.1-cp310-cp310-macosx_10_15_x86_64.whl (236.4 MB)
Using cached tensorflow_hub-0.16.1-py2.py3-none-any.whl (30 kB)
Using cached tensorflow_datasets-4.9.8-py3-none-any.whl (5.3 MB)
Using cached pydot-3.0.4-py3-none-any.whl (35 kB)
Using cached etils-1.12.2-py3-none-any.whl (167 kB)
Using cached keras-2.15.0-py3-none-any.whl (1.7 MB)
Using cached tensorboard-2.15.2-py3-none-any.whl (5.5 MB)
Using cached tensorflow_estimator-2.15.0-py2.py3-none-any.whl (441 kB)
Using cached tf_keras-2.15.1-py3-none-any.whl (1.7 MB)
Using cached wrapt-1.14.1-cp310-cp310-macosx_10_9_x86_64.whl (35 kB)
Using cached immutabledict-4.2.1-py3-none-any.whl (4.7 kB)
Using cached pyarrow-19.0.1-cp310-cp310-macosx_12_0_x86_64.whl (32.1 MB)
Using cached simple_parsing-0.1.7-py3-none-any.whl (112 kB)
Using cached tensorflow_metadata-1.16.1-py3-none-any.whl (28 kB)
Using cached protobuf-3.20.3-py2.py3-none-any.whl (162 kB)
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Using cached docstring_parser-0.16-py3-none-any.whl (36 kB)
Using cached google_auth-2.38.0-py2.py3-none-any.whl (210 kB)
Using cached google_auth_oauthlib-1.2.1-py2.py3-none-any.whl (24 kB)
Using cached einops-0.8.1-py3-none-any.whl (64 kB)
Using cached fsspec-2025.3.0-py3-none-any.whl (193 kB)
Using cached importlib_resources-6.5.2-py3-none-any.whl (37 kB)
Using cached zipp-3.21.0-py3-none-any.whl (9.6 kB)
Using cached cachetools-5.5.2-py3-none-any.whl (10 kB)
Using cached pyasn1_modules-0.4.1-py3-none-any.whl (181 kB)
Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Using cached pyasn1-0.6.1-py3-none-any.whl (83 kB)
Building wheels for collected packages: dm-tree
  Building wheel for dm-tree (setup.py): started
  Building wheel for dm-tree (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [108 lines of output]
      /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-10.13-x86_64-cpython-310/tree
      copying tree/sequence.py -> build/lib.macosx-10.13-x86_64-cpython-310/tree
      copying tree/__init__.py -> build/lib.macosx-10.13-x86_64-cpython-310/tree
      copying tree/tree_test.py -> build/lib.macosx-10.13-x86_64-cpython-310/tree
      copying tree/tree_benchmark.py -> build/lib.macosx-10.13-x86_64-cpython-310/tree
      running build_ext
      cmake version 3.31.6
      
      CMake suite maintained and supported by Kitware (kitware.com/cmake).
      Found CMake
      -- The CXX compiler identification is AppleClang 16.0.0.16000026
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found Python3: /Users/mathildekrafft/Library/r-miniconda/envs/MLBA/bin/python (found version "3.10.16") found components: Interpreter Development Development.Module Development.Embed
      Current build type is: Release
      PROJECT_BINARY_DIR is: /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310
      CMake Deprecation Warning at /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310/_deps/absl-src/CMakeLists.txt:22 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.
      
        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.
      
      
      CMake Warning at /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310/_deps/absl-src/CMakeLists.txt:70 (message):
        A future Abseil release will default ABSL_PROPAGATE_CXX_STD to ON for CMake
        3.8 and up.  We recommend enabling this option to ensure your project still
        builds correctly.
      
      
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      CMake Deprecation Warning at /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310/_deps/pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.
      
        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.
      
      
      -- pybind11 v2.10.1
      -- Performing Test HAS_FLTO
      -- Performing Test HAS_FLTO - Success
      -- Performing Test HAS_FLTO_THIN
      -- Performing Test HAS_FLTO_THIN - Success
      -- Configuring done (6.9s)
      -- Generating done (0.9s)
      -- Build files have been written to: /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310
      [  0%] Building CXX object _deps/absl-build/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
      In file included from /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310/_deps/absl-src/absl/base/log_severity.cc:15:
      /private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/build/temp.macosx-10.13-x86_64-cpython-310/_deps/absl-src/absl/base/log_severity.h:18:10: fatal error: 'array' file not found
         18 | #include <array>
            |          ^~~~~~~
      1 error generated.
      make[2]: *** [_deps/absl-build/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o] Error 1
      make[1]: *** [_deps/absl-build/absl/base/CMakeFiles/absl_log_severity.dir/all] Error 2
      make: *** [all] Error 2
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/setup.py", line 119, in <module>
          setuptools.setup(
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
          return run_commands(dist)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
          dist.run_commands()
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
          self.run_command(cmd)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
          super().run_command(command)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
          cmd_obj.run()
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/command/bdist_wheel.py", line 369, in run
          self.run_command("build")
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
          self.distribution.run_command(command)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
          super().run_command(command)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
          cmd_obj.run()
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 136, in run
          self.run_command(cmd_name)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
          self.distribution.run_command(command)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
          super().run_command(command)
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
          cmd_obj.run()
        File "/private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/setup.py", line 64, in run
          self.build_extension(ext)
        File "/private/var/folders/sh/79yks6zx4rgbcm8z234mxstm0000gn/T/pip-install-q24jljyz/dm-tree_72ed02eb21e84707a85c9b1f4a3b104f/setup.py", line 105, in build_extension
          subprocess.check_call([
        File "/Users/mathildekrafft/Library/r-miniconda/envs/MLBA/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '--build', 'build/temp.macosx-10.13-x86_64-cpython-310', '--config', 'Release']' returned non-zero exit status 2.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dm-tree
  Running setup.py clean for dm-tree
Failed to build dm-tree
ERROR: Failed to build installable wheels for some pyproject.toml based projects (dm-tree)
Error: Error installing package(s): "'tensorflow==2.15.*'", "tensorflow-hub", "tensorflow-datasets", "scipy", "requests", "Pillow", "h5py", "pandas", "pydot"
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: x86_64-apple-darwin20
Running under: macOS Sonoma 14.7.4

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Zurich
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] reticulate_1.41.0.1

loaded via a namespace (and not attached):
 [1] R6_2.6.1          base64enc_0.1-3   xfun_0.51        
 [4] Matrix_1.7-0      lattice_0.22-6    magrittr_2.0.3   
 [7] rpart_4.1.23      keras_2.15.0      knitr_1.49       
[10] generics_0.1.3    png_0.1-8         lifecycle_1.0.4  
[13] cli_3.6.4         tensorflow_2.16.0 grid_4.4.1       
[16] zeallot_0.1.0     renv_1.1.2        withr_3.0.2      
[19] tfruns_1.5.3      compiler_4.4.1    rstudioapi_0.17.1
[22] tools_4.4.1       whisker_0.4.1     evaluate_1.0.3   
[25] Rcpp_1.0.14       yaml_2.3.10       rlang_1.1.5      
[28] jsonlite_1.9.1   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant