所以我已经从v0.6升级到了Julia v0.7。我正在尝试转换我的代码。我收到以下错误:
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 ExcelReaders
和resolve
,而我只是得到一个警告:
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
。
我对所有3个都有相同的问题。我添加了它们,然后仍然收到警告。特别是对于DataArrays,如果添加DataArrays包,则会折旧很多,实际上是语法错误。
谢谢!
注意:此link讨论DataArrays的折旧。我在代码中使用了data = DataArrays.data
,因此,如果我停止执行using DataArrays
,显然将无法正常工作,并且不清楚将替换什么。
更新:不推荐使用DataArrays,因此我摆脱了“ data = DataArrays.data”行。我添加了ExcelReaders和DataFrames,然后进行了解决,我猜它解决了该问题。
答案 0 :(得分:1)
错误with open ("installed_packages.txt", "rt", "newline=\r") as installed_packages:
for lines in installed_packages:
print(lines)
意味着let a = "foo=valor bar=second"
console.log(a.split(' ').map((i,v) => { return JSON.parse(`{"${i.split('=')[0]}": "${i.split('=')[1]}"}`);}))
let b = a.split(' ').map((i,v) => { return JSON.parse(`{"${i.split('=')[0]}": "${i.split('=')[1]}"}`);})
console.log(b.reduce(function(acc, x) {
for (var key in x) acc[key] = x[key];
return acc;
}));
的依存关系中没有Package xxx does not have ExcelReaders in its dependencies
(与您手动安装xxxx
的事实无关)。我不知道ExcelReaders
是什么,所以很难检查。
有关详细信息,请参见https://docs.julialang.org/en/latest/stdlib/Pkg/#Adding-dependencies-to-the-project-1。