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容易得多。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…