# PyPlot error

**URL:** https://discourse.julialang.org/t/pyplot-error/14889
**Category:** General Usage
**Created:** [September 12, 2018, 11:50pm UTC](https://discourse.julialang.org/t/pyplot-error/14889 "2018-09-12T23:50:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![douglaskbell](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@douglaskbell](https://discourse.julialang.org/u/douglaskbell)
#### Post date: [September 12, 2018, 11:50pm UTC](https://discourse.julialang.org/t/pyplot-error/14889/1 "2018-09-12T23:50:38Z")

</div>

Running plot(1:5) caused an error after doing the following installation steps…

1. Installed Julia 1.0.0
2. Installed Python( [Anaconda | Anaconda Distribution](https://www.anaconda.com/download/#windows) )
3. Run Anaconda as admin  
4.Installed matplotlib ( conda install -c conda-forge matplotlib )
4. Install plotting:  
ENV[“PYTHON”]=“c:\Users\ME\Anaconda3\python.exe”

]  
build PyCall  
build PyPlot  
backspace

1. 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
