在向julia添加包时出现错误:
<标题>错误DataFrame
(@v1.5) pkg> add DataFrames
Updating registry at `C:Users.juliaregistriesJuliaComputingRegistry`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package DataFramesMeta [1313f7d8]:
DataFramesMeta [1313f7d8] log:
├─DataFramesMeta [1313f7d8] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
CUDA
(@v1.5) pkg> add CUDA
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CUDA [052768ef]:
CUDA [052768ef] log:
├─CUDA [052768ef] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
每次我尝试向julia添加任何包时都会发生这种情况。我试过重新安装julia,但问题仍然存在。
请建议解决这个问题的方法。我也在julia-discourse上发表了这个问题。
提前感谢。
标题>更新
该问题与更新期间克隆注册表有关。显然,这是某种bug。要解决这个问题,您可以删除registry/General
文件夹,然后重新启动Julia。这将使Julia重新构建所有的包,然后一切都应该运行顺利。
要删除文件夹,您可以进入控制台并执行以下操作:
(@v1.5) pkg> registry rm General
Removing registry `General` from ~/.julia/registries/General
or
查找文件夹.julia/registries/General
(在windows中测试)并手动删除它。(路径看起来像这样:C:UsersUser.juliaregistriesGeneral
谢谢! !