简体   繁体   中英

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? If I could use a Python virtual environment (set up with venv) that would be even better.

OS = Fedora 32, Julia = 1.4.2

You can try to tell PyCall to use your local Python installation rather than Julia in-built.

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

Now whatever you have in Python should be available.

For more details also see: https://github.com/JuliaPy/PyCall.jl#specifying-the-python-version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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