简体   繁体   English

R 中的 MXNet 包安装

[英]MXNet package installation in R

I get plenty of trouble when trying to install MXNet package in RI am using the 3.4.0 version of R and I am on windows 10 CPU intel i3, 64bits x64-based processor.尝试在 RI 中安装MXNet包时遇到很多麻烦,我使用的是 3.4.0 版本的 R,并且我使用的是 Windows 10 CPU intel i3、64 位 x64 处理器。

I get prompted:我得到提示:

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'

I've tried downloading the .rar files provided here.我试过下载这里提供的 .rar 文件。 I decompress one and get the folder where it says "R package" attempting to install it by using:我解压缩一个并获取显示“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)

The guide found in http://mxnet.io/get_started/windows_setup.html makes no sense to me since I cannot find the file required in the steps for installing the prebuild package on windows called setupenv.cmd http://mxnet.io/get_started/windows_setup.html 中的指南对我来说毫无意义,因为我找不到在 Windows 上安装预构建包的步骤中所需的文件setupenv.cmd

For mxnet package install in R using this command for only CPU对于仅 CPU 使用此命令在 R 中安装mxnet

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)

Please try the following line:请尝试以下行:

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

For windows, if you want to install mxnet .对于 Windows,如果要安装mxnet Use the below commmand:使用以下命令:

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)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM