One - One Code All

Blog Content

julia安装python相关的包时设定python环境

Python Julia   2013-10-13 12:05:23


安装PyPlot库经常会出现问题,如果是第一次安装,特别要注意按照安装说明去操作。
具体见https://github.com/JuliaPy/PyPlot.jl。

在交互环境中操作:

1. ENV["PYTHON"]="pythoncommand" //->非常重要,不能省,往往会忽略。
2. Pkg.add(“PyPlot”)

ENV[“PYTHON”]=”pythoncommand”
Pkg.build(“PyCall”)



ENV[“PYTHON”]=”pythoncommand”
Pkg.build(“PyCall”).




上一篇:Mac下配置iTerm2+Tmux
下一篇:python日期与字符串互转

The minute you think of giving up, think of the reason why you held on so long.