Outlier
Outlier

Reputation: 437

Problems installing Julia package using JuliaPro

I am very new to the Julia programming language. I have tried installing packages but none of my attempts were successful thus far.

For example, I ran the command:

using Pkg
Pkg.add("JuMP")

I end up getting the error:

The following package names could not be resolved:
 * JuMP (not found in project, manifest or registry)

This happens for any package I try to install. I also tried entering ] add JuMP but this did not work either. Here is a screenshot of all the error details.

Edit: When I run Pkg.Status() I get

Status `C:\Users\ndook\.julia\environments\JuliaPro_v1.5.1-1\Project.toml`
  [c52e3926] Atom v0.12.21 ⚲
  [7073ff75] IJulia v1.21.3
  [e5e0dc1b] Juno v0.8.3 ⚲
  [4722fa14] PkgAuthentication v0.3.0
  [44d3d7a6] Weave v0.10.3

Upvotes: 2

Views: 270

Answers (1)

logankilpatrick
logankilpatrick

Reputation: 14501

For completeness, the fix for this issue is to run: rm(joinpath(homedir(), ".julia", "registries"); recursive=true). If you counintue to run into issues with JuliaPro, please open an issue here: https://github.com/JuliaComputing/JuliaProIssues

Upvotes: 1

Related Questions