首页 > 解决方案 > Julia 在已安装 python 3.6 的情况下安装了 python 2.7

问题描述

我已经通过 Anaconda3 安装了 python 3.6,然后是 julia 0.6.2。当我为 julia 安装 PyPlot 包时,它会安装 python 2.7 和 mkl、numpy ......我如何告诉 julia 使用当前安装的 python 3.6,因为我不想安装不同版本的 python。谢谢你。

标签: pythonjulia

解决方案


跑:

ENV["PYTHON"] = "... path of the python program you want ..."
Pkg.build("PyCall")

参考:https ://github.com/JuliaPy/PyCall.jl#specifying-the-python-version


推荐阅读