-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyPlot version compatibility #88
Comments
So how do I make sure that the Pyplot version is v2.11.1 and how do I make sure that the Numpy version is v1.22.0?Thanks! |
I found that Pyplot and Numpy are both inside the matplotlib library, what can I do to make sure that I install the matplotlib library with Pyplot and Numpy versions v2.11.1 and v1.22.0? |
] add [email protected] |
Could using this other package fix the issue? https://github.com/JuliaPy/PythonPlot.jl |
julia> ] test FLOWNoise The Python package matplotlib.pyplot could not be imported by pyimport. Usually this means that you did not install matplotlib.pyplot in the Python version being used by PyCall. PyCall is currently configured to use the Python version at: /usr/bin/python3 One alternative is to re-configure PyCall to use a different Python version on your system: set ENV["PYTHON"] to the path/name of the python executable you want to use, run Pkg.build("PyCall"), and re-launch Julia. Another alternative is to configure PyCall to use a Julia-specific Python distribution via the Conda.jl package (which installs a private Anaconda Python distribution), which has the advantage that packages can be installed and kept up-to-date via Julia. As explained in the PyCall documentation, set ENV["PYTHON"]="", run Pkg.build("PyCall"), and re-launch Julia. Then, To install the matplotlib.pyplot module, you can use I added here all the error lines: |
Hi Andrea! Your error seems unrelated to the error discussed in this issue. The good news, though, is that it is really easy to fix =] Did you follow the instructions under "PyCall" in the installation instructions? flow.byu.edu/FLOWUnsteady/installation/general The error that you are encountering means that your Python installation that Julia is calling through PyCall does not have the matplotlib library installed. To fix that, follow the instructions to make sure that PyCall is pointed to the right Python installation, then make sure you run the equivalent to the follow command that will install some dependencies into that Python installation: pip3 install matplotlib mpmath scipy --user |
Issue solved here. Fix is being merged into master and release with new minor version. |
PyPlot v2.11.1 works.
PyPlot v2.11.2 does not.
Numpy v1.22.0 works, but newer versions might have an issue.
Seems to cause compilation errors for FLOWNoise.
Doing
] add PyPlot.jl
brought up this issue.This is more of a note to self to investigate what causes it.
The text was updated successfully, but these errors were encountered: