- 删除julia-1.0
$ jupyter kernelspec list
Available kernels:
julia-1.0 /Users/keke.zhaokk/Library/Jupyter/kernels/julia-1.0
julia-1.1 /Users/keke.zhaokk/Library/Jupyter/kernels/julia-1.1
python3 /opt/anaconda3/share/jupyter/kernels/python3
$ jupyter kernelspec uninstall julia-1.0
Kernel specs to remove:
julia-1.0 /Users/keke.zhaokk/Library/Jupyter/kernels/julia-1.0
Remove 1 kernel specs [y/N]: y
[RemoveKernelSpec] Removed /Users/keke.zhaokk/Library/Jupyter/kernels/julia-1.0
比较容易的安装Julia 1.2
- 删除依赖再安装相关的包
$ rm -rf ~/.Julia ; julia install.jl
$ cat install.jl
using Pkg
# install IJulia
#ENV["JUPYTER"] = "/opt/anaconda3/bin/jupyter"
Pkg.add("IJulia")
# install Pylot
ENV["PYTHON"] = "/opt/anaconda3/bin/python"
#Pkg.add(Pkg.PackageSpec(name="PyCall", rev="master")) ## ] <enter> add PyCall#master
Pkg.add("PyCall")
Pkg.add("PyPlot")
- 测试代码
using PyPlot
x = range(0,stop=2*pi,length=1000); y = sin.(3*x + 4*cos.(2*x))
plot(x, y, color="red", linewidth=2.0, linestyle="--")