If you have Python 2.7 and EasyPHP 14.1 installed, you may go to the EasyPHP folder ../binaries/apache/cgi-bin/ (where, by the way, you may already have printenv.pl file which is the same stuff for Perl programming).
Create a .py file, let it be printenv.py, with the following content:
(In my case E:/Python27/ is the folder where Python installed, so it shoud be changed accordingly.)
In a browser enter: 127.0.0.1/cgi-bin/printenv.py. (The localhost reference may differ but /cgi-bin/printenv.py part remains.)
Than you should see in your browser:
If you have Python 2.7 and EasyPHP 14.1 installed, you may go to the EasyPHP folder
../binaries/apache/cgi-bin/(where, by the way, you may already haveprintenv.plfile which is the same stuff for Perl programming).Create a
.pyfile, let it beprintenv.py, with the following content:(In my case
E:/Python27/is the folder where Python installed, so it shoud be changed accordingly.)In a browser enter:
127.0.0.1/cgi-bin/printenv.py. (Thelocalhostreference may differ but/cgi-bin/printenv.pypart remains.) Than you should see in your browser:For more information, please, visit Web Python .
It is also recommended to use mod_wsgi instead of CGI technique.