IOError: stat: operation not permitted when import new package

I have a Windows VM with two users:

  • Administrator access
  • Local user account (non-admin) access

I have Julia installed in this Windows VM under the C:\Julia folder. The Administrator use can install package and import them successfully. However, when I log in using the Local user (non-admin) and run: import Distributions (one of the packages that I use) I get the following error:

I have also cloned and changed the JULIA_DEPOT_PATH variable to point to a folder in the local user’s home directory but that doesn’t help either.

Any ideas?

Never mind fixed by installing the latest version of Julia 1.5.2 in the local user’s home directory and install the packages from there.