我希望将软件包下载并保存在驱动器 E 而不是驱动器 C 中。我阅读了有关 JULIA_DEPOT_PATH
的信息。在 this article ,但是我不知 Prop 体的步骤,你能不能花点时间给我做个演示?
最佳答案
假设您使用 Windows,只需执行以下操作:
SET JULIA_DEPOT_PATH=C:\your\path
请按照这个例子C:\Users\pszufe>SET JULIA_DEPOT_PATH=C:\Users\pszufe\mypath
C:\Users\pszufe>julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.7.0-beta3.0 (2021-07-07)
_/ |\__'_|_|_|\__'_| | release-1.7/e76c9dad42 (fork: 68 commits, 78 days)
|__/ |
julia> versioninfo()
Julia Version 1.7.0-beta3.0
Commit e76c9dad42 (2021-07-07 08:12 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.0 (ORCJIT, skylake)
Environment:
JULIA_DEPOT_PATH = C:\Users\pszufe\mypath
JULIA_DEPOT_PATH 也可以设置为系统环境变量:![enter image description here](https://i.sstatic.net/HJZBz.png)
关于package - 如何使用 “add” 命令更改下载包的默认保存位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68931046/