When I begin a CGI script with
it works fine. But when I begin it with
I get
Further investigation shows that the environment variable
When I run
work?
#!/usr/local/bin/python3it works fine. But when I begin it with
#!/usr/bin/env python3I get
500 Internal Server ErrorFurther investigation shows that the environment variable
PATH when running a CGI script is:/sbin:/bin:/usr/sbin:/usr/binWhen I run
/usr/local/bin/xinit, I make sure that /usr/local/bin is in the PATH environment variable. But that doesn't seem to be enough. How do I make#!/usr/bin/env python3work?