使用brew安装julia,可以参考
Apple M2
Current stable release: v1.8.5 (January 8, 2023)
- 安装
brew install --cask julia
Ubuntu
- 安装
brew install julia
设置镜像
代码语言:shell复制mkdir -p ~/.julia/config
vi ~/.julia/config/startup.jl
#添加如下内容
# ~/.julia/config/startup.jl
ENV["JULIA_PKG_SERVER"] = "https://mirrors.ustc.edu.cn/julia"
在Julia的REPL输入versioninfo()
命令可以检查镜像是否生效:
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.5.0)
CPU: 8 × Apple M2
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
Threads: 1 on 4 virtual cores
Environment:
JULIA_PKG_SERVER = https://mirrors.ustc.edu.cn/julia
安装常用包
在Julia的REPL输入]
进入pkg mode
add Missings Downloads DataFrames DataFramesMeta IJulia Statistics Genie CSV Arrow PooledArrays CategoricalArrays StatsBase
VS code安装
- 安装vscode
https://code.visualstudio.com/Download
- vscode安装插件
Jupyter、Julia