JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.46k stars 187 forks source link

invalid escape sequence #961

Closed PARODBE closed 2 years ago

PARODBE commented 2 years ago

Hi,

I am new using Julia, It is my first day...and I am trying to install diffeqpy but firstly I have to install some packages and put the path of Julia in the correct way, for this reason, I am doing:

ENV["PYTHON"]="C:\Users\...\python.exe"

But I obtain the error: ERROR: syntax: invalid escape sequence Stacktrace: [1] top-level scope @ none:1

Could you help me please? and sorry for a so stupid question....

Thanks

stevengj commented 2 years ago

Use raw"C:\...\python.exe" — otherwise Julia treats a \ in a string as an escape sequence.

I would encourage you to ask this sort of general Julia question on https://discourse.julialang.org/