using Plots时出问题

当我使用Julia进行using Plots操作的时候,出现了以下问题。请问有人知道怎么做吗?我的版本是julia1.5.2(2020-09-23)的
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library “C:\Users\Qling.julia\artifacts\7350a6401f1c0d38cc3518193083bc4f83adfe99\bin/avcodec-58.dll”
The specified module could not be found.
Stacktrace:
[1] dlopen(::String, ::UInt32; throw_error::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Libdl\src\Libdl.jl:109
[2] dlopen(::String, ::UInt32) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Libdl\src\Libdl.jl:109
[3] macro expansion at C:\Users\Qling.julia\packages\JLLWrappers\m1BKg\src\products\library_generators.jl:61 [inlined] [4] init() at C:\Users\Qling.julia\packages\FFMPEG_jll\7oXwC\src\wrappers\x86_64-w64-mingw32.jl:41
[5] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
[6] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:782
[7] _require(::Base.PkgId) at .\loading.jl:1007
[8] require(::Base.PkgId) at .\loading.jl:928
[9] require(::Module, ::Symbol) at .\loading.jl:923
[10] include(::Function, ::Module, ::String) at .\Base.jl:380
[11] include(::Module, ::String) at .\Base.jl:368
[12] top-level scope at none:2
[13] eval at .\boot.jl:331 [inlined]
[14] eval(::Expr) at .\client.jl:467
[15] top-level scope at .\none:3
during initialization of module FFMPEG_jll
in expression starting at C:\Users\Qling.julia\packages\FFMPEG\vocw2\src\FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\Qling.julia\compiled\v1.5\FFMPEG\TGvga_BNjXg.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923
[6] include(::Function, ::Module, ::String) at .\Base.jl:380
[7] include(::Module, ::String) at .\Base.jl:368
[8] top-level scope at none:2
[9] eval at .\boot.jl:331 [inlined]
[10] eval(::Expr) at .\client.jl:467
[11] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\Plots\XbAWb\src\Plots.jl:15
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Qling.julia\compiled\v1.5\Plots\ld3vC_BNjXg.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923

我去帮你在slack问问

搭梯子,再build一次

我一直是翻着的,也是不行 好像是FFMPEG这个包的问题

最新的FFMPEG的版本是0.4 我后来直接降级到0.23版本 重新卸载了Julia, 再装0.23就没问题了(也试过卸载Julia装最新版本的FFMPEG,还是出问题),所以应该是FFMPEG包的问题。。

image
不管怎么说,解决了就好

确实 但是 希望开发者能解决这个问题吧。。重装Julia还是很要命。。一堆包要add和build

其实现在倒是可以试试完全不用梯子来安装。。。最近重装了一次好像Plots这些都没问题可以直接下载了。我这FFMPEG 0.4是没问题。

咦这样吗 那我下次试试

这个问题我前几天参与过一个issue的讨论,是FFMPEG的问题,开发人员已经解决了,更新FFMPEG到最新版本就可以(可能需要手动 rm 之后再安装才能成功使用最新的artifact)

详见:

好的好的 谢谢了