# Julia 1.0.0 on Windows 10 'using PyPlot can't load library expected at: .julia\\\\packages\\\\Conda\\\\m7vem\\\\deps\\\\usr\\\\python37\\

**URL:** <https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682>\
**Category:** General Usage\
**Created:** [September 7, 2018, 8:44pm UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682 "2018-09-07T20:44:32Z")\
**Posts on this page:** 10\
**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 7, 2018, 8:44pm UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/1 "2018-09-07T20:44:32Z")

</div>

0 down vote [favorite](https://stackoverflow.com/questions/52228402/julia-1-0-0-on-windows-10-could-not-load-library-expected-at-julia-packages#)

I’m trying to get matplotlib working with Julia 1.0.0.  
Installed it but get error when I try to test it by doing this…

```julia
ENV["PYTHON"]="c:\\ProgramData\\Anaconda3\\python.exe"
using Pkg
Pkg.add("PyPlot")
using PyPlot

```

…which gets this error:

```julia
ErrorException("error compiling display_error: error compiling findprev: error compiling lookup: error compiling Type: could not load library \"C:\\Users\\ME\\.julia\\packages\\Conda\\m7vem\\deps\\usr\\python37\"\nThe specified module could not be found.

```

 ![julia](https://global.discourse-cdn.com/julialang/original/3X/b/0/b0c3efba00e0af33281516afa17a3da139f19744.png)

---

<div class="post-metadata">

**Author:** ![Juser](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Juser](https://discourse.julialang.org/u/Juser)\
**Post date:** [September 7, 2018, 10:02pm UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/2 "2018-09-07T22:02:16Z")

</div>

Rather than trying to use your existing Conda, it may be easier just to set `Env["PYTHON"]=""` and rebuild `PyCall` (and possibly `PyPlot`), which should basically download/build everything you need in a Conda just for Julia.

---

<div class="post-metadata">

**Author:** ![pszufe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pszufe/32/23452_2.png) [@pszufe](https://discourse.julialang.org/u/pszufe)\
**Post date:** [September 7, 2018, 10:06pm UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/3 "2018-09-07T22:06:35Z")

</div>

You asked the same question on StackOverflow. And I have just answered it. Why are you duplicating questions?

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [September 7, 2018, 11:56pm UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/4 "2018-09-07T23:56:11Z")

</div>

> [@Juser](#):
>
> it may be easier just to set `Env["PYTHON"]=""` and rebuild `PyCall` (and possibly `PyPlot` ), which should basically download/build everything you need in a Conda just for Julia.

Sure, and throw away 1.7 GB of disk space as if they were peanuts skins.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 8, 2018, 12:11am UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/5 "2018-09-08T00:11:56Z")

</div>

You can use your own Python Installation if you are comfortable installing Python packages yourself. Did you install matplotlib? Does

```julia
using PyCall
pyimport(“matplotlib”)

```

work? Is `PyCall.python` the Python program you want to use?

---

<div class="post-metadata">

**Author:** ![Juser](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Juser](https://discourse.julialang.org/u/Juser)\
**Post date:** [September 8, 2018, 3:45am UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/6 "2018-09-08T03:45:32Z")

</div>

@pszufe’s solution seems right. I think you probably need to ensure that `PyCall` and `PyPlot` were built knowing where your environment was.

As for 1.7 GB of space, I’ve typically found hard drive space to be cheap but debugging/troubleshooting time to be expensive, so I thought I would offer a solution that I was 99% sure would work and would require near 0 troubleshooting time.

---

<div class="post-metadata">

**Author:** ![pszufe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pszufe/32/23452_2.png) [@pszufe](https://discourse.julialang.org/u/pszufe)\
**Post date:** [September 8, 2018, 7:26am UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/7 "2018-09-08T07:26:36Z")

</div>

Additional, more advanced, notes:

- an external Python (not Julia in-built) in some scenarios is easier to manage for people coming to Julia for Python
- the inbuilt Julia Conda package typically takes 3GB of disk space (Windows)
- you can manipulate with `JULIA_DEPOT_PATH` and `PYTHON` environment variables to run Julia with various Python versions (however, I have not tested whether you can run two Python versions at the same time with a single Julia process but it could be possible with the current package manager).

Here is the link to the same question on Stackoverflow:

> <https://stackoverflow.com/questions/52228402/julia-1-0-0-on-windows-10-using-pyplot-compiler-error-because-it-cant-load-libr>

---

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [September 8, 2018, 7:37am UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/8 "2018-09-08T07:37:30Z")

</div>

Another duplicate: [Julia 1.0.0 on Windows 10 could not load library expected at: julia\\packages\\Conda\\m7vem\\deps\\usr\\python37\](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-could-not-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14679)

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [September 8, 2018, 9:53am UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/9 "2018-09-08T09:53:13Z")

</div>

> [@Juser](#):
>
> As for 1.7 GB of space, I’ve typically found hard drive space to be cheap

Not on laptops with SSD disks. People too often forget this.

---

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [September 8, 2018, 10:11am UTC](https://discourse.julialang.org/t/julia-1-0-0-on-windows-10-using-pyplot-cant-load-library-expected-at-julia-packages-conda-m7vem-deps-usr-python37/14682/10 "2018-09-08T10:11:48Z")

</div>

Then you shouldn’t use Windows. The whole design philosophy is to always provide all binary dependencies. That’s why all the Window programs are so huge in size.
