Skip to content

Commit

Permalink
pin numpy<2 in install_keras()
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Jun 27, 2024
1 parent e5817d9 commit 0ef37a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ install_keras <- function(
packages = NULL
)
extra_packages <- unique(extra_packages)

if(!any(grepl("^numpy[=><!]?", extra_packages)))
extra_packages <- c(extra_packages, "numpy<2")

if (length(extra_packages))
reticulate::py_install(extra_packages, envname = envname)

Expand Down

0 comments on commit 0ef37a5

Please sign in to comment.