在XAMPP Localhost服务器上运行Python代码

时间:2019-06-05 13:21:01

标签: php python apache server xampp

我试图在XAMPP的本地主机服务器上运行python应用程序。 该代码是非常基本的代码,以查看是否可以在localhost上运行它。 php代码运行,但是python代码返回错误。 错误消息将显示在下面。

我尝试了一个非常有效的非常简单的php代码,以及一个不起作用的非常简单的python代码。 我在XAMPP文件中添加了.py和index.html,但仍然无法使用。

我提到我正在使用Python 3.7.3

当我尝试运行python脚本时收到错误消息:

服务器错误!

服务器遇到内部错误,无法完成您的请求。

错误消息:

  

无法创建子进程:720002:test.py

>     If you think this is a server error, please contact the webmaster.
>     Error 500
>     localhost
>     Apache/2.4.39 (Win64) OpenSSL/1.0.2r PHP/7.1.29

1 个答案:

答案 0 :(得分:0)

相关问题