在R中安装mxnet软件包时出现问题 [英] Issue in installation of mxnet package in R

查看:540
本文介绍了在R中安装mxnet软件包时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

mxnet软件包未安装在r中(在Windows 10上).

mxnet package is not installing in r (on windows 10) when I follow the steps given in its documentation.

install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")

它给出以下结果

将软件包安装到"C:/Users/Ashish/Documents/R/win-library/3.3" (因为未指定"lib")install.packages中的警告:无法打开 URL' http://dmlc.github.io/drat/bin /windows/contrib/3.3/PACKAGES.gz ': install.packages中的HTTP状态为"404未找到"警告:不能 公开网址 ' http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES ':HTTP install.packages中的状态为"404未找到"警告:无法 存储库的访问索引 http://dmlc.github.io/drat/bin/windows/contrib/3.3 :无法打开URL ' http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES '软件包 仅以源代码形式提供,可能需要对以下内容进行编译 C/C ++/Fortran:"mxnet"是否要尝试从以下位置安装这些文件 来源?是/否:y安装源软件包"mxnet"

Installing package into ‘C:/Users/Ashish/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) Warning in install.packages : cannot open URL 'http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES.gz': HTTP status was '404 Not Found' Warning in install.packages : cannot open URL 'http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES': HTTP status was '404 Not Found' Warning in install.packages : unable to access index for repository http://dmlc.github.io/drat/bin/windows/contrib/3.3: cannot open URL 'http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES' Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘mxnet’ Do you want to attempt to install these from sources? y/n: y installing the source package ‘mxnet’

尝试URL' http://dmlc.github.io /drat/src/contrib/mxnet_0.5.tar.gz ' install.packages中的警告:无法打开URL ' http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz ':HTTP状态 download.file(URL,destfile,方法,模式中为"404 Not Found"错误) ="wb",...):无法打开URL' http ://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz '中的警告 install.packages:软件包"mxnet"的下载失败

trying URL 'http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz' Warning in install.packages : cannot open URL 'http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz': HTTP status was '404 Not Found' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL 'http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz' Warning in install.packages : download of package ‘mxnet’ failed

请帮助我解决此问题.我正在使用R版本3.3.0.还有其他在R中安装它的方法吗?

Kindly help me resolve this issue. I'm using R version 3.3.0. Is there any other way of installing it in R?

推荐答案

对我唯一有效的方法是将mxnet.zip文件下载到一个文件夹(将其设置为工作目录)并键入:

The only thing that worked for me was to download the mxnet.zip file to a folder, (set it as working directory) and type:

install.packages("mxnet.zip", repos=NULL, type="win.binary")

这篇关于在R中安装mxnet软件包时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆