簡體   English   中英

R 中的 MXNet 包安裝

[英]MXNet package installation in R

嘗試在 RI 中安裝MXNet包時遇到很多麻煩,我使用的是 3.4.0 版本的 R,並且我使用的是 Windows 10 CPU intel i3、64 位 x64 處理器。

我得到提示:

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

對於僅 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)

請嘗試以下行:

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

對於 Windows,如果要安裝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)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM