<分区>
如何在 Julia 中更改包目录的路径?我在 Package Manager Functions 部分的文档中找不到答案. 我在 Windows 上使用 Julia v0.4.6。
<分区>
如何在 Julia 中更改包目录的路径?我在 Package Manager Functions 部分的文档中找不到答案. 我在 Windows 上使用 Julia v0.4.6。
最佳答案
选项 1
documentation 中的这个命令怎么样? :
push!(LOAD_PATH, "C:\Path\To\My\Module\")
可以从 Julia 中运行,或者如文档所述:
Putting this statement in the file ~/.juliarc.jl will extend LOAD_PATH on every Julia startup. Alternatively, the module load path can be extended by defining the environment variable JULIA_LOAD_PATH.
选项 2
Windows 中的 SET 命令应该等同于基于 unix/linux 的系统中的导出:Windows equivalent of $export .例如。
SET JULIA_PKGDIR=C:\your\directory
从这里开始,这应该使人能够遵循@Gnimuc 的答案:Change Package directory in Julia
关于windows - 在 Julia 中更改包目录的路径(在 Windows 上),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39161550/