Je n'ai jamais installé ces paquets auparavant, mais j'ai procédé comme suit et j'ai réussi! Cela a pris un peu de temps, car cela m'a donné une variété d'erreurs en plus de ce que vous avez rapporté.
Enfin, je suis venu avec ceci: dans le terminal,
pip uninstall h5py
pip install h5py
pip uninstall keras
pip install keras
J'ai vérifié en Python qui import h5py
fonctionne vrai (. La première fois, il m'a donné un échec DLL) Puis, en R, après le redémarrage,
install.packages("reticulate")
install.packages("tensorflow")
install.packages("keras")
install.packages("h5py")
devtools::install_github("decryptr/decryptr")
devtools::install_github("decryptr/decryptrModels")
library(keras)
install_keras()
# Check where Python's looked for
reticulate::py_config()
library(decryptr)
library(decryptrModels)
captcha <- captcha_download_tjmg(dest = 'img')
keras_tjmg <- read_model('tjmg')
Mon sessionInfo()
se présente comme suit:
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] decryptrModels_0.0.0.9000 decryptr_0.0.1.9000
[3] keras_2.0.8.9001
loaded via a namespace (and not attached):
[1] Rcpp_0.12.13 prettyunits_1.0.2 assertthat_0.2.0
[4] R6_2.2.2 jsonlite_1.5 magrittr_1.5
[7] httr_1.3.1 tfruns_1.0 rlang_0.1.2
[10] progress_1.1.2 curl_2.8.1 whisker_0.3-2
[13] reticulate_1.2.0.9005 tools_3.4.1 purrr_0.2.3
[16] compiler_3.4.1 base64enc_0.1-3 tensorflow_1.4.0.9003
Permettez-moi kn ow si cela fonctionne.
utilisez-vous anaconda? J'ai eu ce problème une fois et je l'ai résolu en installant h5py dans l'environnement (r-tensorflow). – Athos