如何直接从 github 添加包到 Julia?

Moh*_*aad 4 github package julia

我在 Julia(编辑器 - Atom)中Unsatisfiable requirements导入该包的最新 github 版本时遇到了一些问题Geostats。为了避免包之间的任何冲突,我使用虚拟环境。

\n
(Virtualenv) pkg> add https://github.com/JuliaEarth/GeoStats.jl.git\n    Cloning git-repo `https://github.com/JuliaEarth/GeoStats.jl.git`\n   Updating git-repo `https://github.com/JuliaEarth/GeoStats.jl.git`\n   Updating registry at `C:\\Users\\User\\.julia\\registries\\General`\n   Updating registry at `C:\\Users\\User\\.julia\\registries\\JuliaComputingRegistry`\n  Resolving package versions...\nERROR: Unsatisfiable requirements detected for package Variography [04a0146e]:\n Variography [04a0146e] log:\n \xe2\x94\x9c\xe2\x94\x80possible versions are: [0.2.0-0.2.2, 0.3.0-0.3.7, 0.4.0-0.4.3, 0.5.0-0.5.10, 0.6.0-0.6.3, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.1, 0.10.0-0.10.4, 0.11.0-0.11.1] or uninstalled\n \xe2\x94\x94\xe2\x94\x80restricted to versions 0.12 by GeoStats [dcc97b0b] \xe2\x80\x94 no versions left\n   \xe2\x94\x94\xe2\x94\x80GeoStats [dcc97b0b] log:\n     \xe2\x94\x9c\xe2\x94\x80possible versions are: 0.23.0 or uninstalled\n     \xe2\x94\x94\xe2\x94\x80GeoStats [dcc97b0b] is fixed to version 0.23.0\n
Run Code Online (Sandbox Code Playgroud)\n

首先,我想知道这是直接从 github 导入包的正确方法或语法吗?\n我如何解决这个条件不满足的问题?

\n

谢谢!

\n

log*_*ick 5

为了具体回答你原来的问题,这样做add https://the_girhub_clone_url将直接从 GitHub 添加一个包。