MullaePengsoo
MullaePengsoo

Reputation: 33

How can I resolve a package installation error in Julia on Windows?

I have just started using Julia on a Windows 10 machine, and I have been trying to install some very basic packages. When I use the Pkg.add() command, however, the command window returns the following error:

ERROR: SystemError: opening file C:\Users\username\.julia\environments\v1.0\Project.toml: Permission denied

The error message pops up even when using the Administrator mode. Any advice or tips would be appreciated! Thanks!

Upvotes: 3

Views: 1268

Answers (1)

Przemyslaw Szufel
Przemyslaw Szufel

Reputation: 42214

  1. Delete .julia folder or set a new location for the JULIA_DEPOT_PATH.

  2. Once done use a non-administrator account (the one you normally work with) to reinstall packages.

Upvotes: 2

Related Questions