如何在UWAMP上运行Python?

时间:2018-12-07 00:50:40

标签: python apache uwamp

我已经在

上安装了Python
C:\Users\Ethernet\AppData\Local\Programs\Python\Python37-32

并且我将UWAMP用作本地主机,我确实将httpd.conf更改为

C:\work\bin\apache\conf\httpd.conf

<Directory "{DOCUMENTPATH}/">
        AllowOverride All
        Options Indexes FollowSymLinks
        {ONLINE_MODE}       
    </Directory>

我将其更改为

<Directory "{DOCUMENTPATH}/">
        AllowOverride All
        AddHandler cgi-script .cgi .py
        Options Indexes FollowSymLinks ExecCGI
        {ONLINE_MODE}       
    </Directory>

但是现在我得到了

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at contact@exemple.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

0 个答案:

没有答案