Pkg.add("plots") doesn't work

I am a total beginner with julia and I’ve been trying to make some simple plots using the following commands:
import Pkg
using Pkg
Pkg.add(“Plots”)
but everytime I get the same msg:

Unsatisfiable requirements detected for package WebIO [0f1e0344]:

WebIO [0f1e0344] log:
├─WebIO [0f1e0344] has no known versions!
└─found to have no compatible versions left with Atom [c52e3926]
└─Atom [c52e3926] log:
├─possible versions are: [0.8.0-0.8.8, 0.9.0-0.9.1, 0.10.0-0.10.2, 0.11.0-0.11.3, 0.12.0-0.12.30] or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions [0.8.0-0.8.8, 0.9.0-0.9.1, 0.10.0-0.10.2, 0.11.0-0.11.3, 0.12.0-0.12.30]

Help please!!

1 Like

start a new environment.

  1. Create a new folder
  2. Change the directory in julia to that folder using cd from inside julia
  3. Activate a new environment with import Pkg; Pkg.activate(".")
  4. do Pkg.add("Plots")
4 Likes

Thank you very much, works perfectly!

You should do this before starting every project. If you use a global “namespace” for packages for the same project everywhere, you are bound to have lots of conflicts