Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a package directly from github to Julia?

I am getting an Unsatisfiable requirements while importing the latest github release of the Geostats package in Julia (Editor - Atom). TO avoid any clashes between the packages, I am using virtual environment.

(Virtualenv) pkg> add https://github.com/JuliaEarth/GeoStats.jl.git
    Cloning git-repo `https://github.com/JuliaEarth/GeoStats.jl.git`
   Updating git-repo `https://github.com/JuliaEarth/GeoStats.jl.git`
   Updating registry at `C:\Users\User\.julia\registries\General`
   Updating registry at `C:\Users\User\.julia\registries\JuliaComputingRegistry`
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Variography [04a0146e]:
 Variography [04a0146e] log:
 ├─possible 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
 └─restricted to versions 0.12 by GeoStats [dcc97b0b] — no versions left
   └─GeoStats [dcc97b0b] log:
     ├─possible versions are: 0.23.0 or uninstalled
     └─GeoStats [dcc97b0b] is fixed to version 0.23.0

Firstly, I would like to know is this the correct approach or syntax to import a package directly from github? And how may i resolve this issue of unsatisfiable conditions?

Thanks!

like image 542
Mohammad Saad Avatar asked Oct 17 '25 19:10

Mohammad Saad


2 Answers

To answer your original question specifically, doing add https://the_girhub_clone_url will add a package directly from GitHub.

like image 85
logankilpatrick Avatar answered Oct 20 '25 15:10

logankilpatrick


There's also documentation on how to understand and resolve package conflicts. It's complicated the first time you work through it, but it's a life-skill worth learning :-).

like image 20
tholy Avatar answered Oct 20 '25 16:10

tholy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!