2017-05-09 983 views
1

我试图安装时遇到了很多麻烦MXNet package in R 我使用R的3.4.0版本,我在windows 10 CPU intel i3,64位x64处理器上。MXNet软件包安装在R

我得到提示:

install.packages("mxnet") 
Warning in install.packages : 
    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found' 
Installing package into ‘C:/Users/los40/OneDrive/Documentos/R/win-library/3.4’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    package ‘mxnet’ is not available (for R version 3.4.0) 
Warning in install.packages : 
    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found' 

我尝试下载这里提供的.rar文件。我解一个,并得到它说:“R包”,试图通过使用安装的文件夹:

> install.packages('R.package.rar', lib='D:/mxnet',repos = NULL) 
Error in install.packages : type == "both" cannot be used with 'repos = NULL' 
> install.packages('R.package.rar', lib='D:/mxnet') 
Warning in install.packages : 
    package ‘R.package.rar’ is not available (for R version 3.4.0) 

http://mxnet.io/get_started/windows_setup.html发现该指南是没有意义的我,因为我无法找到了安装步骤所需的文件在Windows上预生成包称为setupenv.cmd

+0

以前问这里回答:http://stackoverflow.com/questions/37110169/issue-in-installation-of-mxnet-package-in-r –

+0

烨,我一直检查该帖子,我无法获得解决方案 – Gotey

+0

您是否尝试过:install.packages(“drat”,repos =“https://cran.rstudio.com”) drat ::: addRepo(“dmlc”) install.packages(“mxnet”) –

回答

8

对于mxnet包使用此comman安装中的R d只有CPU

cran <- getOption("repos") 
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/" 
options(repos = cran) 
install.packages("mxnet",dependencies = T) 
library(mxnet) 
+0

此URL适用于我。谢谢! – Shanemeister

+0

它也适用于我,谢谢! – Gotey

0

请尝试以下行:

cran <- getOption("repos") 
cran["dmlc"] <- "https://s3.amazonaws.com/mxnet-r/" 
options(repos = cran) 
install.packages("mxnet") 
+0

我得到这个:> install.packages(“mxnet”,repos =“https://dmlc.ml/drat/ “) install.packages中的警告: 无法打开URL'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds':HTTP stat '404 Not Found' 将软件包安装到'C:/Users/los40/OneDrive/Documentos/R/win-library/3.4' (因为'lib'未指定) install.packages中的警告: InternetOpenUrl失败:'证书中的主机名无效或不匹配' install.packages中的警告: InternetOpenUrl失败:'证书中的主机名无效或不匹配... – Gotey