简体   繁体   English

Julia,没有 conda 的 Pyplot

[英]Julia , Pyplot without conda

How can I set up my Julia installation to use PyPlot by calling my native Python and not install the huge and mostly useless conda?如何通过调用我的本地 Python 来设置我的 Julia 安装以使用 PyPlot,而不安装巨大且几乎无用的 conda? If I could use a Python virtual environment (set up with venv) that would be even better.如果我可以使用 Python 虚拟环境(使用 venv 设置)那就更好了。

OS = Fedora 32, Julia = 1.4.2操作系统 = Fedora 32,Julia = 1.4.2

You can try to tell PyCall to use your local Python installation rather than Julia in-built.您可以尝试告诉PyCall使用您本地的 Python 安装而不是 Julia 内置。

ENV["PYTHON"]="/path_to/bin/python"
using Pkg
pkg"build PyCall"

Now whatever you have in Python should be available.现在,您在 Python 中拥有的任何东西都应该可用。

For more details also see: https://github.com/JuliaPy/PyCall.jl#specifying-the-python-version有关更多详细信息,另请参阅: https://github.com/JuliaPy/PyCall.jl#specifying-the-python-version

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM