在提问之前请确定你已经努力阅读了文档,并且尝试自己在互联网上搜索。
请尽可能提供你的demo代码或者GitHub的gist地址。
# code
julia> x=1:10
1:10
julia> y=randn(10)
10-element Array{Float64,1}:
0.5312980216667252
0.020136687115275
-1.39684661041237
-0.4326330986004357
-0.6337635938057279
0.05934026674979013
-0.9303235605194948
0.952339142271928
1.6385472992460286
-0.7293951846558439
julia> plot(x,y)
WARNING: both GR and Plots export “plot”; uses of it in module Main must be qualified
ERROR: UndefVarError: plot not defined
Stacktrace:
[1] top-level scope at REPL[17]:1
(@v1.5) pkg> Pkg.build(“GR”)
ERROR: Could not determine command
julia> Pkg.build(“GR”)
ERROR: UndefVarError: Pkg not defined
Stacktrace:
[1] top-level scope at REPL[19]:1
julia> import Pkg
julia> Pkg.build(“GR”)
Building GR → C:\Users\YEXIN\.julia\packages\GR\BwGt2\deps\build.log
julia> plot(x,y)
ERROR: UndefVarError: plot not defined
Stacktrace:
[1] top-level scope at REPL[22]:1