我已经看到这个问题可以解决Windows中的问题,但是还没有Mac的解决方案。
在安装了keras之后,
devtools::install_github("rstudio/keras")
library(keras)
install_keras()
运行时出现错误:
library(keras)
mnist <- dataset_mnist()
>> Error in initialize_python(required_module,use_environment) :
Python shared library not found,Python bindings not loaded.
我尝试了以下方法:
use_python("/Users/me/anaconda3/bin/python3.7",required = TRUE)
use_virtualenv("~/MyFolder/.venv/")
use_python("~/MyFolder/.venv/bin/python")
但是没有成功,我看到了一些有关错误python安装的建议,但就我而言不应该这样。 我已经用Anaconda安装了python 3.7.5
=> python --version
Python 3.7.5
我在RStudio版本1.2.5019中的macOS Catalina版本10.15.1上。有人有什么解决办法吗?