Webpy + python2.7 + Linux environment setup

Source: Internet
Author: User

For more installation configuration details, see: http://blog.csdn.net/five3/article/details/7732832


WindowsDirectly download all the packages for Environment setup and install them directly:

You can download a Windows package from python2.7.

Webpy does not distinguish between Windows and Linux. After decompression, Python setup. py install

Setuptools directly downloads an installation package for python2.7 in Windows

Install mysqldb directly in the next Windows package

Download a Windows package from the pymssql package. [it seems that there is no python2.7, but it can be installed and used]

Python-flup package download a direct installation of Windows

LinuxInstallation is a little troublesome:

Python2.7
======================================
Wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
Tar jxvf Python-2.7.3.tar.bz2
CD Python-2.7.3
./Configure
Make & make install

Webpy
======================================
Wget http://github.com/webpy/webpy/tarball/master
Install: Python setup. py install

Setuptools
======================================
Wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
Sh setuptools-0.6c11-py2.7.egg

Mysql-for-python2.7
======================================

Http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/

Yum install Python-devel
Yum install mysql-devel
Modify the site. cfg file in the mysqldb directory to ensure that the mysql_config option path is correctly configured.
Python setup. py build
Python setup. py install
If you have any questions, you can refer to the project or FAQ in the installation requirements under the download directory.
Http://mysql-python.sourceforge.net/FAQ.html

Mssql-for-python2.7

======================================

Http://sourceforge.net/projects/pymssql/files/pymssql/1.0.2/pymssql-1.0.2.tar.gz/download

Python setup. py install

Flup-for-python2.7
======================================
Flup-1.0.3flup-1.0.3 [csdn.net]

FAQs:
1. After the build is complete, can the local machine be accessed or other machines be inaccessible?
This is usually because of the firewall, the firewall is disabled, or the firewall is allowed to pass through. The Linux Firewall tool is iptables.
2. After configuring an nginx virtual host, the Error 404 is always prompted during access?
404 usually because the configuration file does not contain the page you want to request. If the configuration is correct, stop and restart nginx to avoid using the reload command. Because the reload name can be loaded only when the modified configuration file format is correct, and some configuration files are incorrect, reload does not prompt, of course, the real reload is not successful directly.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.