本文介绍了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:- 如果您有 xxx 签出进行开发并且有将 ExcelReaders 添加为依赖项,但尚未更新主环境的清单文件,请尝试 Pkg.resolve().- 否则,您可能需要报告 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.

我该如何解决这个问题?在我的一个文件中,我使用 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:11