本文介绍了Julia错误:LoadError:ArgumentError:包xxxx的依赖项中没有ExcelReaders:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我已经从v0.6升级到了Julia v0.7.我正在尝试转换我的代码.我收到以下错误:

So I have upgraded to Julia v0.7 from v0.6. I am trying to convert my code. I get the following error:

ERROR: LoadError: LoadError: ArgumentError: Package xxx does not have ExcelReaders in its dependencies:- If you have xxx checked out for development and have added ExcelReaders as a dependency but haven't updated your primary environment's manifest file, try Pkg.resolve().- Otherwise, you may need to report an issue with xxx

ERROR: LoadError: LoadError: ArgumentError: Package xxx does not have ExcelReaders in its dependencies:- If you have xxx checked out for development and have added ExcelReaders as a dependency but haven't updated your primary environment's manifest file, try Pkg.resolve().- Otherwise, you may need to report an issue with xxx

所以我做了一个add ExcelReadersresolve,而我只是得到一个警告:

So I did an add ExcelReaders and resolve and I just get a warning instead:

 Warning: Package xxx does not have ExcelReaders in its dependencies:
If you have xxx checked out for development and have
added ExcelReaders as a dependency but haven't updated your primary
environment's manifest file, try Pkg.resolve().
- Otherwise you may need to report an issue with SHERPA
Loading ExcelReaders into xxx from project dependency, future warnings for xxx are suppressed.

如何解决此问题?在我的一个文件中,我执行using ExcelReaders, DataFrames, DataArrays.

How can I fix this issue? In one of my files, I do using ExcelReaders, DataFrames, DataArrays.

我对所有3个都有相同的问题.我添加了它们,然后仍然收到警告.特别是对于DataArrays,如果添加DataArrays包,则会折旧很多,实际上是语法错误.

I have the same issue for all 3. I add them, and then I still get the warning. For DataArrays specifically, I get a bunch of depreciation and actually a syntax error if I add the DataArrays Package.

谢谢!

注意:此链接讨论了DataArrays的折旧.我在代码中使用了data = DataArrays.data,因此,如果我停止使用using DataArrays,则显然将无法正常工作,并且不清楚将替换什么.

Note: This link talks about the depreciation of DataArrays. I use data = DataArrays.data in my code, so if I stop doing using DataArrays, it obviously won't work and it's not clear what the replacement would be.

更新:不推荐使用DataArrays,因此我摆脱了"data = DataArrays.data"行.我添加了ExcelReaders和DataFrames,然后进行了解析,我猜它解决了该问题.

Update: DataArrays is deprecated so I got rid of the line "data = DataArrays.data". I added ExcelReaders and DataFrames and then did a resolve and I guess it fixed the issue.

推荐答案

错误Package xxx does not have ExcelReaders in its dependencies表示xxxx的依赖项中没有ExcelReaders(与已安装ExcelReaders的事实无关)手动).我不知道xxxx是什么,所以很难检查.

The error Package xxx does not have ExcelReaders in its dependencies means that xxxx does not have ExcelReaders in its dependencies (it is unrelated with the fact if you have installed ExcelReaders manually). I do not know what xxxx is so it is hard to check.

请参见 https://docs.julialang.org/en/latest/stdlib/Pkg/#Adding-dependencies-to-the-project-1 了解详情.

这篇关于Julia错误:LoadError:ArgumentError:包xxxx的依赖项中没有ExcelReaders:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-02 20:13