# PyPlot issues

**URL:** <https://discourse.julialang.org/t/pyplot-issues/1833>\
**Category:** New to Julia\
**Created:** [February 2, 2017, 5:56am UTC](https://discourse.julialang.org/t/pyplot-issues/1833 "2017-02-02T05:56:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heinz\_Bauschke](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Heinz\_Bauschke](https://discourse.julialang.org/u/Heinz_Bauschke)\
**Post date:** [February 2, 2017, 5:56am UTC](https://discourse.julialang.org/t/pyplot-issues/1833/1 "2017-02-02T05:56:21Z")

</div>

Hi,

I am trying to get PyPlot to work but get the  
error listed below. This is on macOS 10.12.3.  
Any help would be appreciated.

Thanks,

```
Heinz.

          _

```

\_ \_ _(_)\_ | A fresh approach to technical computing  
(_) | (_) (_) | Documentation: [http://docs.julialang.org](http://docs.julialang.org)  
\_ \_ | | \_\_ \_ | Type “?help” for help.  
| | | | | | |/ ` | |  
| | || | | | (_| | | Version 0.5.0 (2016-09-19 18:14 UTC)  
_/ |\ __‘_|_|_|\__ ’\_| | Official [http://julialang.org/](http://julialang.org/) release  
|\_\_/ | x86\_64-apple-darwin13.4.0

julia\> using PyPlot  
ERROR: InitError: PyError (:PyImport\_ImportModule) \<type ‘exceptions.ImportError’\>  
ImportError(‘No module named mpl\_toolkits.mplot3d’,)

in pyerr\_check at /Users/bauschke/.julia/v0.5/PyCall/src/exception.jl:56 [inlined]  
in pyerr\_check at /Users/bauschke/.julia/v0.5/PyCall/src/exception.jl:61 [inlined]  
in macro expansion at /Users/bauschke/.julia/v0.5/PyCall/src/exception.jl:81 [inlined]  
in pyimport(::String) at /Users/bauschke/.julia/v0.5/PyCall/src/PyCall.jl:391  
in **init** () at /Users/bauschke/.julia/v0.5/PyPlot/src/PyPlot.jl:257  
in \_include\_from\_serialized(::String) at ./loading.jl:150  
in \_require\_from\_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187  
in \_require\_search\_from\_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:217  
in \_require\_search\_from\_serialized(::Int64, ::Symbol, ::String, ::Bool) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?  
in require(::Symbol) at ./loading.jl:371  
in require(::Symbol) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?  
during initialization of module PyPlot

---

<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:** [February 2, 2017, 12:30pm UTC](https://discourse.julialang.org/t/pyplot-issues/1833/2 "2017-02-02T12:30:11Z")

</div>

Try `ENV["PYTHON"]=""; Pkg.build("PyCall")` to tell PyCall to use its own (Anaconda-based) Python installation, rather than whatever you happen to have on your machine.
