Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

julia - 在Catalina机器上安装Julia 0.64(Installing Julia 0.64 on Catalina Machine)

Done this multiple times before on Windows machines with no issues.

(在Windows机器上完成此操作之前没有问题。)

But after installing Julia Pro on a Catalina machine, I keep getting this error when I try to add the Gurobi package with Pkg.add("Gurobi"):

(但是在Catalina机器上安装了Julia Pro之后,当我尝试使用Pkg.add(“ Gurobi”)添加Gurobi软件包时,仍然出现此错误:)

ERROR: SystemError: realpath: No such file or directory

(错误:SystemError:realpath:没有这样的文件或目录)

I tried giving Julia full disk access per the only comment I have seen elsewhere.

(我尝试根据我在其他地方看到的唯一注释为Julia提供完整的磁盘访问权限。)

I have also defined the path to Gurobi correctly I believe with ENV["GUROBI_HOME"] = "/Library/gurobi811/mac64"

(我也相信ENV [“ GUROBI_HOME”] =“ / Library / gurobi811 / mac64”正确定义了Gurobi的路径)

Anything else I can do?

(我还能做什么?)

This is older code so was hoping to avoid updating it to work with Julia 1.x.

(这是较旧的代码,因此希望避免对其进行更新以与Julia 1.x一起使用。)

Thank you!

(谢谢!)

I have burned two days trying to figure this out!

(我已经花了两天时间试图解决这个问题!)

  ask by rendermonster translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It's only become commonplace recently for packages to put upper-bounds on the version of Julia itself or their dependencies;

(直到最近,软件包才对朱莉娅本身的版本或它们的依赖项设置了上限。)

indeed it's now a requirement for registering new versions automatically.

(实际上,现在这是自动注册新版本的要求。)

But in the old days we were much looser about that.

(但是在过去,我们对此感到更加放松。)

As a consequence, there may be versions of Gurobi that claim to work with a wider variety of Julia versions than they really do, or packages that work together in certain versions but not in others, without any way for Pkg to know what the magic combinations are.

(结果,可能有一些Gurobi版本声称可以使用比实际版本更广泛的Julia版本,或者某些软件包可以在某些版本中协同工作,而不能在其他版本中协同工作,而Pkg无法通过任何方式知道什么魔术组合是。)

You may need to manually install a version of Gurobi that was "modern" at the time of Julia 0.6.

(您可能需要手动安装在Julia 0.6时为“现代”的Gurobi版本。)

But you should also expect to have to do this kind of digging for other packages that you will use.

(但是您还应该期望必须对要使用的其他软件包进行这种挖掘。)

Given how much time you've spent on this, I think your better option is to install Julia 0.7 and use its warnings to tell you how to modernize your code.

(考虑到您花了多少时间,我认为您最好的选择是安装Julia 0.7,并使用警告来告诉您如何现代化代码。)

Once done, you can use Julia 1.x.

(完成后,您可以使用Julia1.x。)

But it's much easier to get to 1.x through 0.7 than it is to jump straight to 1.x.

(但是,通过0.7达到1.x比直接跳至1.x容易得多。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...