CoolProp / CoolProp.jl

A Julia wrapper for CoolProp, offering access to thermodynamic properties for fluids and mixtures.
http://www.coolprop.org
Other
32 stars 15 forks source link

Installing CoolProp for Julia 1.6.3 on a Windows 11 operating system #15

Closed Peter-Jolly closed 2 years ago

Peter-Jolly commented 2 years ago

Hi,

I am trying to load the CoolProp package for windows for Julia 1.6.3 as below but get an error, as below. Could someone guide me through the steps.

Thanks,

Peter

# Test CoolProp
import Pkg
Pkg.clone("https://github.com/vimalaad/CoolProp.jl.git")
Pkg.build("CoolProp") # to download the latest binaries

ERROR: LoadError: UndefVarError: clone not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base .\Base.jl:26
 [2] top-level scope
   @ c:\Users\peter\Documents\Julia_Code\GH_Model_Final\Test CoolProp.jl:3
in expression starting at c:\Users\peter\Documents\Julia_Code\GH_Model_Final\Test CoolProp.jl:3
Peter-Jolly commented 2 years ago

I found the solution on this site that seems to work:

  1. Go to REPL
  2. Type ]: (puts you into Pkg mode)
  3. dev https://github.com/CoolProp/CoolProp.jl.git
  4. build CoolProp

Once this is done can call CoolProp routines from Vscode, providing that using CoolProp is included at top of program