How do I build a Python development environment (http://www.maiziedu.com/course/python/)under a Linux system? Python installation method in Linux system is very different under Windows, today it is specific to record about the Python environment package under the Linux system some of the installation steps
1. Upgrade Python to 2.7.10(default 2.6.6 )
Shell > Yum-y Install epel-release
Shell > Yum-y Install gcc wget readline-devel zlib-devel openssl-devel
Shell > Wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
Shell > Tar zxf python-2.7.10.tgz
Shell > CD Python-2.7.10;./configure--prefix=/usr/local/python2.7; make; Make install
Shell > Mv/usr/bin/python/usr/bin/old_python
Shell > Ln-s/usr/local/python2.7/bin/python/usr/bin/python
Shell > Sed-i ' 1s/python/old_python/'/usr/bin/yum
Shell > Python-v
Python 2.7.10
##
## readline-devel  TAB&NBSP is not supported,
# # zlib-devel this package setuptools this package pip
## /usr/bin/yum file interpreter to change it or not to use Yum
2, installation Setuptools
Shell > Wget https://pypi.python.org/packages/source/s/setuptools/setuptools-15.2.tar.gz#md5= A9028a9794fc7ae02320d32e2d7e12ee
Shell > Tar zxf setuptools-15.2.tar.gz
Shell > CD setuptools-15.2; Python setup.py Install
Shell > Ln-s/usr/local/python2.7/bin/easy_install/usr/bin/easy_install
# # So Setuptools is also installed, if you do not install this package directly download PIP Source package installation may be an error that can not find Setuptools
3. Install PIP
Shell > Wget https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz#md5=6b19e0a934d982a5a4b798e957cb6d45
Shell > Tar zxf pip-6.1.1.tar.gz
Shell > CD pip-6.1.1; Python setup.py Install
Shell > Ln-s/usr/local/python2.7/bin/pip/usr/bin/pip
# # so pip also installed, of course, with Easy_install can directly easy_install pip , source code is just another way to install
4, installation Ipython
Shell > Wget https://pypi.python.org/packages/source/i/ipython/ipython-3.1.0.tar.gz#md5= a749d90c16068687b0ec45a27e72ef8f
Shell > Tar zxf ipython-3.1.0.tar.gz
Shell > CD ipython-3.1.0; Python setup.py Install
Shell > Ln-s/usr/local/python2.7/bin/ipython/usr/bin/ipython
# # So Ipython also installed, can also be installed by Pip install Ipython fast
Sixth article
Beginner PHP, which skills must be mastered?
What knowledge is required for PHP entry?
What skills do PHP beginners have to master?
0 Basic Learning PHP, you need to master these skills
Learn some of the skills that PHP must know
Beginners PHP, do not be ambitious, down-to-earth lnmp skilled, lay a good foundation to a higher level of development. Today we summarize the skills that beginners should learn.
1.Linux
Basic command, operation, startup, basic service configuration (including RPM installation files, various service configurations, etc.); write simple shell scripts and awk/sed script commands.
2.Nginx
To be able to install configuration nginx+php, know the basic nginx core configuration options, know Server/fastcgi_pass/access_log and other basic configuration, the goal is to enable NGINX+PHP_FPM to work smoothly.
3.MySQL
Will build MySQL, know the basic MySQL configuration options, know the difference between InnoDB and MyISAM, know the different configuration options for InnoDB and MyISAM two engines; know the difference between the basic two engines and choose the difference above To build a MySQL database and configure the code to run normally and stably; The core idea is to be able to build a running MySQL database.
4.PHP
Basic syntax array, string, database, XML, Socket, gd/imagemgk image processing, and so on; be familiar with the various APIs (MYSQL/MYSQLI/PDO) linked to MySQL, and know the solution to various coding problems Know the regular skilled PHP framework (thinkphp, Zendframework, Yii, YAF, etc.); understand the basic MVC mechanism and why you do it, a little bit about the differences between different PHP frameworks, and the ability to quickly learn an MVC framework. Be able to know the file directory organization in the development project, have the basic good code structure and the style, can complete the small system development and the medium system one module development work.
5. Front End
If the condition time allows, you can properly learn the HTML/CSS/JS and other related knowledge, know what web standards, Div+css web/wap page pattern, know the difference between HTML5 and HTML4; understand some basic frontend just and JS framework (jquery and the like) ; Understand some basic JavaScript programming knowledge; (this item is not a must, if you have time, it is possible to understand a little, but it is not recommended as a priority unless the individual has a strong interest).
6. System Design
Can complete the basic design of small system, including simple database design, can complete the basic: Browser---nginx+php database architecture design and development work, can support hundreds of thousands of to millions of daily traffic website development and maintenance work.
This is PHP the most basic thing, learn fast perhaps half a year to take care of, learn slow two or three years is also possible. To learn efficiently, it must be a lot of practice.
Original link: http://q.maiziedu.com/article/23891/
Installing Python packages under Linux