Can't install PyCall

I’ve tried to install PyCall numerous times, but can never get it to work. I’ve tried manually setting the environment variable PYTHON to the directory where the lastest python.exe file is, but that doesn’t work. When I try Pkg.build(“PyCall”) I get a bunch of undecipherable errors. I’m almost at the point of removing both Python and Julia completely and trying to start over. Or can I simply get by without PyCall?

It can be tricky. Which Julia version are you using? Which operating system?

Which Python package to you want to use, if any?

Have a look at GitHub - aenarete/ControlPlots.jl: Easy to use plotting for control engineers and students

If you use Julia 1.12, you might have to launch it with julia -t 1,0

It might be easier to use PythonPlot.jl or PythonCall.jl