{"id":72,"date":"2011-11-28T23:56:47","date_gmt":"2011-11-28T19:56:47","guid":{"rendered":"http:\/\/blog.5flor.ru\/?p=72"},"modified":"2011-11-28T23:56:47","modified_gmt":"2011-11-28T19:56:47","slug":"phyton-2-7","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=72","title":{"rendered":"Phyton 2.7"},"content":{"rendered":"<h1>CentOS: \u0441\u0431\u043e\u0440\u043a\u0430 \u0441\u0432\u0435\u0436\u0435\u0433\u043e Python<\/h1>\n<div>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python 2.7.1:<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n<pre><code>yum install sqlite-devel openssl-devel make gcc<\/code><\/pre>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 Python:<\/p>\n<pre><code>wget http:\/\/www.python.org\/ftp\/python\/2.7.1\/Python-2.7.1.tgz tar xvfz .\/Python-2.7.1.tgz cd .\/Python-2.7.1<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f:<\/p>\n<pre><code>.\/configure --prefix=\/opt\/python2.7 --with-threads --enable-shared<\/code><\/pre>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/p>\n<pre><code>make &amp;&amp; make install<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443:<\/p>\n<pre><code>ln -s \/opt\/python2.7\/bin\/python \/usr\/bin\/python2.7<\/code><\/pre>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u0438 \u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c \u0432 <em>\/etc\/ld.so.conf.d\/opt-python2.7.conf<\/em>:<\/p>\n<pre><code>\/opt\/python2.7\/lib<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre><code>ldconfig<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<pre><code>python2.7<\/code><\/pre>\n<blockquote><p>Python 2.7.1 (r271:86832, Apr 26 2011, 12:11:59)<br \/>\n[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2<br \/>\nType \u00abhelp\u00bb, \u00abcopyright\u00bb, \u00abcredits\u00bb or \u00ablicense\u00bb for more information.<br \/>\n&gt;&gt;&gt;<\/p><\/blockquote>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <em>setuptools<\/em>:<\/p>\n<pre><code>wget http:\/\/pypi.python.org\/packages\/2.7\/s\/setuptools\/setuptools-0.6c11-py2.7.egg<\/code><\/pre>\n<pre><code>sh .\/setuptools-0.6c11-py2.7.egg --prefix=\/opt\/python2.7\/<\/code><\/pre>\n<blockquote><p>Processing setuptools-0.6c11-py2.7.egg<br \/>\nCopying setuptools-0.6c11-py2.7.egg to \/opt\/python2.7.1\/lib\/python2.7\/site-packages<br \/>\nAdding setuptools 0.6c11 to easy-install.pth file<br \/>\nInstalling easy_install script to \/opt\/python2.7.1\/\/bin<br \/>\nInstalling easy_install-2.7 script to \/opt\/python2.7.1\/\/bin<\/p>\n<p>Installed \/opt\/python2.7.1\/lib\/python2.7\/site-packages\/setuptools-0.6c11-py2.7.egg<br \/>\nProcessing dependencies for setuptools==0.6c11<br \/>\nFinished processing dependencies for setuptools==0.6c11<\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>CentOS: \u0441\u0431\u043e\u0440\u043a\u0430 \u0441\u0432\u0435\u0436\u0435\u0433\u043e Python \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python 2.7.1: \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438: yum install sqlite-devel openssl-devel make gcc \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 Python: wget http:\/\/www.python.org\/ftp\/python\/2.7.1\/Python-2.7.1.tgz tar xvfz .\/Python-2.7.1.tgz cd .\/Python-2.7.1 \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f: .\/configure &#8212;prefix=\/opt\/python2.7 &#8212;with-threads &#8212;enable-shared \u0421\u0431\u043e\u0440\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430: make &amp;&amp; make install \u0421\u043e\u0437\u0434\u0430\u0435\u043c &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=72\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/72"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}