Code:
>head cgi-bin/nav.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgitb; cgitb.enable()
import cgi; escape = cgi.escape
When I visit http://127.0.0.1:8000/cgi-bin/nav.py, it reports:
Code:
env: python: No such file or directory
If I change its head to
Code:
#!/usr/local/bin/python
BTW,
Code:
#!/usr/bin/env python
Any suggestion is appreciated!