因为不起作用,我重新安装了。但没有成功。我错过了什么?
install.packages('C:/gurobi800/win64/R/gurobi_8.0-0.zip', repos=NULL)
# package ‘gurobi’ successfully unpacked and MD5 sums checked
Sys.getenv()
# ...
# GRB_LICENSE_FILE C:\gurobi800\gurobi.lic
# GUROBI_HOME C:\gurobi800\win64
# ...
library("gurobi")错误:“gurobi”的包或命名空间加载失败:包“gurobi”是由具有不同内部结构的R版本安装的;需要重新安装才能与此R版本一起使用
来自Gurobi's R文件夹中的描述
Depends: slam (>= 0.1-9)
URL: http://www.gurobi.com
Built: R 3.4.0; x86_64-w64-mingw32; 2018-04-21 00:42:28 UTC; windowsSessionInfo:
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 LC_MONETARY=German_Switzerland.1252
[4] LC_NUMERIC=C LC_TIME=German_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] slam_0.1-44
loaded via a namespace (and not attached):
[1] compiler_3.5.1 imsbasics_1.9.7 tools_3.5.1 yaml_2.1.19 https://stackoverflow.com/questions/54607190
复制相似问题