Can't run julia from windows terminal (Julia 1.8.2 / Windows 10)

Hello,

Under Windows 10 trying to run julia from terminal (added to PATH), I’m stuck with the following message :

Cannot find file at 'c:\windows\system32\config\systemprofile\appdata\local\programs\julia-1.8.2\bin\julia.exe' (c:\windows\system32\config\systemprofile\appdata\local\programs\julia-1.8.2\bin\julia.exe). This usually indicates a missing or moved file.

I’m getting the same error message after uninstalling julia 1.8.2 and typing julia in terminal.

Any idea what is wrong with my install.

Kind regards

Are you sure the path is right? (Seems to be non standard.)

What have you added to PATH?

is surely expected. Do you mean “installing julia 1.8.2” ?

C:\Users\scell\AppData\Local\Programs\Julia-1.8.2\bin have been added by installer


Microsoft Windows [version 10.0.19044.2130]
(c) Microsoft Corporation. Tous droits réservés.

C:\Users\scell>C:\Users\scell\AppData\Local\Programs\Julia-1.8.2\bin\julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.2 (2022-09-29)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> ^C

julia>

C:\Users\scell>julia
Cannot find file at 'c:\windows\system32\config\systemprofile\appdata\local\programs\julia-1.8.2\bin\julia.exe' (c:\windows\system32\config\systemprofile\appdata\local\programs\julia-1.8.2\bin\julia.exe). This usually indicates a missing or moved file.

I can confirm that this Cannot find file at also occurs after uninstalling Julia (as if there was an other julia command)

where julia helped me to find that I had an other julia install with Chocolatey

where julia
C:\Users\scell\julia
C:\ProgramData\chocolatey\bin\julia.exe
C:\Users\scell\AppData\Local\Programs\Julia-1.8.2\bin\julia
C:\Users\scell\AppData\Local\Programs\Julia-1.8.2\bin\julia.exe

Cleaning up by removing those unused julia’s should be fine to solve your issue.
The julia.exe, which produces your error messages seems to be corrupt anyways.

Thanks @oheil

1 Like