# Error in using PyPlot in Julia

**URL:** <https://discourse.julialang.org/t/error-in-using-pyplot-in-julia/36234>\
**Category:** General Usage\
**Tags:** question, package, plotting\
**Created:** [March 19, 2020, 11:02pm UTC](https://discourse.julialang.org/t/error-in-using-pyplot-in-julia/36234 "2020-03-19T23:02:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fksayaci](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Post date:** [March 19, 2020, 11:02pm UTC](https://discourse.julialang.org/t/error-in-using-pyplot-in-julia/36234/1 "2020-03-19T23:02:19Z")

</div>

Hi,

I use Julia for optimization purposes. I use PyPlot for visualization of the results.

I have used Windows and Mac computer so far, and there was no problem at all.

I recently switched to a Windows computer, installed Julia and Atom. When I type “using PyPlot” it gives the following error.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/d/8d8e29644b4d3306c641884caa9635634dba4610.png)

As the error says, I typed Pkg.build(“PyCall”), but it gives another error. I can not post the picture of it, but it says that it could not find system-wide Python.

I could not resolve this problem.

There is a similar discussion here in this forum, but it did not help me to figure this out.

> [@Error in using PyPlot in JuliaPro](https://discourse.julialang.org/t/error-in-using-pyplot-in-juliapro/25400):
>
> Can anyone tell me why the PyPlot doesn’t work even though I have installed PyPlot and PyCall ? The version of my JuliaPro is 1.1.1.1. Here is the error message: julia\> using PyPlot [Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee] ERROR: LoadError: LoadError: PyCall not properly installed. Please run Pkg.build(“PyCall”) Stacktrace: [1] error(::String) at .\error.jl:33 [2] top-level scope at C:\Users\86139.juliapro\JuliaPro\_v1.1.1.1\packages\PyCall\ttONZ\src\startup.jl:…

Your help will be much appreciated.

Kind regards

---

<div class="post-metadata">

**Author:** ![fksayaci](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Post date:** [March 20, 2020, 12:44am UTC](https://discourse.julialang.org/t/error-in-using-pyplot-in-julia/36234/2 "2020-03-20T00:44:51Z")

</div>

I solved this problem. I had two Python installations in my computer. One is individual installation that I did, and the other is Anaconda installation. Individual installation was 32-bit. What I did is to define ENV[“PYTHON”] to Anaconda installation, which is 64-bit. Then, I run Pkg.build(“PyCall”), and restated Julia. This solved the problem.

However, now when I run “using PyPlot”, it says that matplotlib does not match with Python installation. I do not have the Windows computer now. I will upload the error when I have that.

Kind regards
