Windows 10上的Julia 1.0.0使用PyPlot编译器错误,因为它无法加载库预期在:.julia \\ packages \\ Conda \\ m7vem \\ deps \\ usr \\ python37 \

问题描述 投票:0回答:1

我想让matplotlib与Julia 1.0.0一起工作。 安装它但是当我尝试通过这样做来测试它时会出错...

ENV["PYTHON"]="c:\\ProgramData\\Anaconda3\\python.exe"
using Pkg
Pkg.add("PyPlot")
using PyPlot

...得到这个错误:

ErrorException("error compiling display_error: error compiling findprev: error compiling lookup: error compiling Type: could not load library \"C:\\Users\\ME\\.julia\\packages\\Conda\\m7vem\\deps\\usr\\python37\"\nThe specified module could not be found.\r\n")

这是我所拥有的:.julia \ packages \ Conda \ m7vem \ deps \ usr \

enter image description here

windows matplotlib julia
1个回答
2
投票

要使用Julia配置外部Python,请执行以下步骤。

ENV["PYTHON"]="c:\\ProgramData\\Anaconda3\\python.exe"

现在按]并在(v1.0) pkg>提示符下输入:

build PyCall
build PyPlot

现在按退格键返回正常的REPL。

我想你在设置Python路径之前安装了PyCall。 Python路径更改需要包重建。

© www.soinside.com 2019 - 2024. All rights reserved.