Running plot(1:5) caused an error after doing the following installation steps…
- Installed Julia 1.0.0
- Installed Python( Anaconda | Anaconda Distribution )
- Run Anaconda as admin
4.Installed matplotlib ( conda install -c conda-forge matplotlib ) - Install plotting:
ENV[“PYTHON”]=“c:\Users\ME\Anaconda3\python.exe”
]
build PyCall
build PyPlot
backspace
- Quick test:
using PyPlot
plot(1:5)
…which gets this error:
ERROR: ArgumentError: haskey of NULL PyObject
Stacktrace:
[1] haskey(::PyCall.PyObject, ::String) at C:\Users\ME.julia\packages\PyCall\rUul9\src\PyCall.jl:310
[2] #plot#85(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::UnitRange{Int64}) at C:\Users\ME.julia\packages\PyPlot\tA0wP\src\PyPlot.jl:176
[3] plot(::UnitRange{Int64}) at C:\Users\ME.julia\packages\PyPlot\tA0wP\src\PyPlot.jl:176
[4] top-level scope at none:0