{"id":344748,"date":"2023-01-31T09:00:52","date_gmt":"2023-01-31T09:00:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=344748"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=344748","title":{"rendered":"<span>Python \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442: \u043a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0441 Python 3.4 \u0434\u043e Python 3.11, \u0435\u0441\u043b\u0438 pip \u0443\u0436\u0435 \u0441\u043b\u043e\u043c\u0430\u043d<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/eh\/3z\/ox\/eh3zoxd69r3mhnb6jqproign8dg.png\" height=\"500\" data-src=\"https:\/\/habrastorage.org\/webt\/eh\/3z\/ox\/eh3zoxd69r3mhnb6jqproign8dg.png\"\/>  <\/p>\n<p>  <\/p>\n<p>Python \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 IT-\u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0443\u0436\u0435 9 \u043b\u0435\u0442, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f\u0445, \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0440\u0435\u043b\u0438\u0437\u0430\u0445. \u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0430\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u0438 \u0443\u0436\u0435 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u043b\u0430. \u0411\u043e\u043b\u0435\u0435 5 \u043b\u0435\u0442 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u0441\u0438\u043b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. Django \u0441 1.9 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c \u0443\u0436\u0435 \u0434\u043e 4.1 \u0432\u0435\u0440\u0441\u0438\u0438, Python 3.4 \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d, \u0434\u0430 \u0434\u0430\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 pip \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043d.<\/p>\n<p>  <\/p>\n<p>\u0412 4 \u0447\u0430\u0441\u0442\u044f\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0438\u0446\u0430, \u043a\u0430\u043a 9-\u043b\u0435\u0442\u043d\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f outdated \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0432 actual \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0431\u0440\u0430\u043b 100 \u0431\u0430\u043b\u043b\u043e\u0432 \u0432 PageSpeed.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e Python \u0438 Django.<a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<h2 id=\"soderzhanie-cikla-statey\">\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439<\/h2>\n<p>  <\/p>\n<ul>\n<li>1 \u0447\u0430\u0441\u0442\u044c: \u041a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0441 Python 3.4 \u0434\u043e Python 3.11, \u0435\u0441\u043b\u0438 pip \u0443\u0436\u0435 \u0441\u043b\u043e\u043c\u0430\u043d<br \/> \n<ul>\n<li>\u2014 \u0432\u044b \u0437\u0434\u0435\u0441\u044c \u2014 <\/li>\n<\/ul>\n<\/li>\n<li>2 \u0447\u0430\u0441\u0442\u044c: \u041a\u0430\u043a \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e pre-commit<\/li>\n<li>3 \u0447\u0430\u0441\u0442\u044c: \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c CI \u0434\u043b\u044f OpenSource \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 Github Actions<\/li>\n<li>4 \u0447\u0430\u0441\u0442\u044c: \u041a\u0430\u043a \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c Django \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e (\u043f\u043e\u0447\u0442\u0438) \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"o-python-daydzhest\">\u041e Python \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442<\/h2>\n<p>  <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/bs\/lt\/ow\/bsltowowte5p_flyyrbklzagwuu.png\" height=\"200\" data-src=\"https:\/\/habrastorage.org\/webt\/bs\/lt\/ow\/bsltowowte5p_flyyrbklzagwuu.png\"\/>  <\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/pythondigest.ru\/\">Python \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442<\/a> \u2014 \u044d\u0442\u043e open source <a href=\"https:\/\/github.com\/pythondigest\/pythondigest\">\u043f\u0440\u043e\u0435\u043a\u0442<\/a> \u043f\u0440\u043e Python, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Python. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0433\u043e\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f 10 \u043b\u0435\u0442 \u043a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f, \u0432\u044b\u0447\u0438\u0449\u0430\u044e\u0442\u0441\u044f, \u0438\u0437\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u044b. <\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0437\u043d\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0430\u0436\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u043b\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c. \u0418 \u0441 \u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u0430\u043b\u043e \u0447\u0442\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c. \u0418 \u0432\u0441\u0435 \u0442\u0430\u043a\u0436\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u044d\u0442\u043e\u0442 \u0440\u0435\u0441\u0443\u0440\u0441, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u00ab\u0432 \u043a\u0443\u0440\u0441\u0435\u00bb, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f, \u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e. <\/p>\n<p>  <\/p>\n<h2 id=\"sostoyanie-na-konec-noyabrya-2022\">\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043d\u0435\u0446 \u043d\u043e\u044f\u0431\u0440\u044f 2022:<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u0415\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Ubuntu 14.04 \u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c \u0447\u0435\u0440\u0435\u0437 uwsgi \u0438 supervisor Django \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c<\/li>\n<li>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 virtualenv \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 Python 3.4, \u043d\u043e \u043a\u043e\u0433\u0434\u0430-\u0442\u043e pip \u0431\u044b\u043b \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 3.6 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <code>pip freeze<\/code><\/li>\n<li>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 virtualenv \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 Python 3.6, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u0441 requirements.txt<\/li>\n<li>\u041a\u0430\u043a \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0441\u0435\u0440\u0432\u0435\u0440, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 \u2014 \u043d\u0438\u043a\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u043d\u0438\u0442, \u0430 \u0432 bash history \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442<\/li>\n<li>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0434 \u0432\u043d\u043e\u0441\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 git<\/li>\n<li>\u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0441\u0431\u043e\u0438\u0442 \u2014 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0438 \u0438 \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"zadacha-chast-1--obnovitsya-minimum-do-python-36\">\u0417\u0430\u0434\u0430\u0447\u0430 (\u0447\u0430\u0441\u0442\u044c 1) \u2014 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043e Python 3.6<\/h2>\n<p>  <\/p>\n<blockquote><p>3.6 \u2014 \u0440\u0435\u043f\u0435\u0440\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c f-string. \u042d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c <code>__future__<\/code> flag \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0432\u0435\u0436\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 f-string.<\/p><\/blockquote>\n<p>  <\/p>\n<h2 id=\"plan-rabot\">\u041f\u043b\u0430\u043d \u0440\u0430\u0431\u043e\u0442<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043a\u043e\u0434 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 git \u0432\u0435\u0442\u043a\u0438<\/li>\n<li>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 Python 3.4, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e<\/li>\n<li>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 <code>poetry<\/code> \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043c\u0438<\/li>\n<li>\u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c Python 3.11 \u0438 Django 4.1<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"kak-sinhroniziroval-kodovuyu-bazu\">\u041a\u0430\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043c\u0430\u0441\u0442\u0435\u0440-\u0432\u0435\u0442\u043a\u0443 \u0441 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b \u0432 <code>tar.gz<\/code> \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441 \u043a\u043e\u0434 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>scp<\/code>.<\/li>\n<li>\u0427\u0435\u0440\u0435\u0437 <code>meld<\/code> (\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e diff) \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b \u0438\u0445.<\/li>\n<li>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 <a href=\"https:\/\/github.com\/pythondigest\/pythondigest\/tree\/renew\">\u0432\u0435\u0442\u043a\u0435<\/a> \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438 \u0434\u0432\u0443\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0431\u0430\u0437 \u0441\u0442\u043e\u0438\u0442 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0422\u0435\u0441\u0442\u044b. \u041a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u0442\u0435\u0441\u0442\u044b \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442.<\/li>\n<li>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u0411\u044b\u043b\u0438 \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043a\u0430\u043a\u0438\u0435. \u0411\u044d\u043a\u0430\u043f\u043e\u043c \u0438\u0445 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c, \u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0438\u043f\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/li>\n<li>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0447\u0442\u043e\u0431\u044b \u0443\u0447\u0435\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0445 API.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"kak-ne-zapustil-python-34-na-ubuntu-2204\">\u041a\u0430\u043a \u041d\u0415 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b Python 3.4 \u043d\u0430 Ubuntu 22.04<\/h2>\n<p>  <\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0442\u043e\u0438\u0442 Python 3.10, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435, \u0447\u0435\u043c Python 3.4, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/pyenv\/pyenv\">pyenv<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e python \u0440\u044f\u0434\u043e\u043c \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0442\u0430\u043a \u044f \u0434\u0443\u043c\u0430\u043b, \u043d\u043e \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>pyenv intall 3.4<\/code> \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0448\u0438\u0431\u043a\u0443 <a href=\"https:\/\/github.com\/pyenv\/pyenv\/issues\/950\">Missing the OpenSSL lib?<\/a>. \u0414\u0430\u0436\u0435 <a href=\"https:\/\/github.com\/pyenv\/pyenv\/wiki\/Common-build-problems#error-the-python-ssl-extension-was-not-compiled-missing-the-openssl-lib\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/a> \u043f\u0440\u043e \u044d\u0442\u043e \u0435\u0441\u0442\u044c. <\/p>\n<p>  <\/p>\n<p>\u0418\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438 Pull Request \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u0437\u0430 \u0432\u0440\u0435\u043c\u044f \u0441 Python 3.4 OpenSSL \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0441 1.11 \u0434\u043e 3.0 (\u043f\u0435\u0440\u0435\u043f\u0440\u044b\u0433\u043d\u0443\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u0439) \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u043d\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 \u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c OpenSSL \u0432\u0435\u0440\u0441\u0438\u0438 3.0, \u0432\u043c\u0435\u0441\u0442\u043e 1.11, \u0441\u0434\u0435\u043b\u0430\u0442\u044c downgrade \u0432\u0435\u0440\u0441\u0438\u0438, \u0447\u0435\u0440\u0435\u0437 brew \u043d\u0430 Ubuntu \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e OpenSSL.<\/p>\n<p>  <\/p>\n<p>\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0430\u043b\u043e \u043f\u043b\u043e\u0434\u043e\u0432. \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u043b 3.4 \u0438 3.6 Python, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e, \u0438 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0439\u0442\u0438 \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043f\u0443\u0442\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"kak-zapustil-python-34-v-docker\">\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b Python 3.4 \u0432 Docker<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0441\u043e\u0444\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u044f\u0436\u0435\u043b\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c\/\u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u043e \u0447\u0442\u043e \u0431\u0435\u0440\u0435\u043c? \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0436\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e Docker. <\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0441\u0440\u0435\u0434\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>Dockerfile<\/code> \u0441\u043e \u0432\u0441\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430 Docker Hub, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0434\u0438\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445. <\/p>\n<p>  <\/p>\n<blockquote><p>\u0412 Docker Hub \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0435\u0432\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u044b, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0438\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u043e\u043d\u0438. \u0412\u043e\u0442 \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439.<\/p><\/blockquote>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043b <a href=\"https:\/\/github.com\/pythondigest\/pythondigest\/blob\/f011d5e7fd9f9633b8f1fabbc2ae9b7de83112bf\/deploy\/Dockerfile\">Dockerfile \u0441 Python 3.4<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445. \u0412\u0443\u0430\u043b\u044f! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438. \u0410 \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/github.com\/pythondigest\/pythondigest\/blob\/f011d5e7fd9f9633b8f1fabbc2ae9b7de83112bf\/local.yml\">docker compose (\u0432\u043d\u0443\u0442\u0440\u0438 dev \u0443\u0436\u0430\u0441)<\/a>, \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0438 \u043d\u0435 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<h2 id=\"kak-poluchil-versii-paketov-so-slomannym-pip\">\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0441\u043e \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c pip<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 Python 3.4. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 <code>requirements.txt<\/code>. \u041a\u0430\u043a \u043f\u0438\u0441\u0430\u043b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u2014 pip \u0431\u044b\u043b \u0441\u043b\u043e\u043c\u0430\u043d \u0438\u0437-\u0437\u0430 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f (<code>python setup.py install<\/code> \u0434\u043b\u044f pip), \u043d\u043e \u043d\u0435 \u0431\u0435\u0434\u0430 \u2014 \u043c\u043e\u0436\u043d\u043e \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">import module_name  help(module_name)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u044b\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0430\u043a\u0435\u0442\u0430 (\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e <code>grep<\/code>&#8216;\u043e\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0438\u0437 venv \u043f\u0430\u043f\u043a\u0438).<br \/>  \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 poetry, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"kakie-ispolzoval-menedzhery-zavisimostey\">\u041a\u0430\u043a\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/h2>\n<p>  <\/p>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u043f\u043e \u043f\u0443\u0442\u0438 \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e <code>pip install<\/code>, \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043a <code>requirements.txt<\/code>, \u0433\u0434\u0435 \u0431\u044b\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043f\u0430\u043a\u0435\u0442\u044b, \u0437\u0430\u0442\u0435\u043c \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <code>pip-tools<\/code> (\u0442\u043e\u0433\u0434\u0430 poetry \u0435\u0449\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f), \u0430 \u0443\u0436\u0435 \u0437\u0430\u0442\u0435\u043c \u0441\u0442\u0430\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>poetry<\/code>:<\/p>\n<p>  <\/p>\n<ul>\n<li><code>requirements.txt<\/code> \u2014 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f \u043d\u0438\u0445. \u041f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u0449\u0435\u0443\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u043c\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439.<\/li>\n<li><code>pip-tools<\/code> \u2014 \u043d\u0430\u0431\u043e\u0440 \u0443\u0442\u0438\u043b\u0438\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0430 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u042d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u00ab\u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u0438\u00bb \u043a \u00ab\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u043c \u043d\u0430\u0434\u043e \u043b\u0438\u00bb. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0431\u0438\u0442\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/li>\n<li><code>poetry<\/code> \u2014 \u044d\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0436\u0435 \u043d\u0435 \u0431\u043e\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 (\u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e) \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0431\u044b\u043b\u0438 \u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u044b. <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 <a href=\"https:\/\/pdm.fming.dev\">pdm<\/a>, \u0430 \u043f\u043e\u043a\u0430 \u00ab\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u00bb \u044d\u0442\u043e <code>poetry<\/code>. <\/p>\n<p>  <\/p>\n<blockquote><p><code>Pipenv<\/code> \u0441 <code>Pipfile.lock<\/code> \u0442\u043e\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438, \u0445\u043e\u0442\u044f \u0435\u0433\u043e \u043c\u043e\u0449\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0432\u0441\u0435\u0433\u043e dev \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/p><\/blockquote>\n<p>  <\/p>\n<h2 id=\"kak-obnovil-python-zavisimosti-s-docker\">\u041a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u0438\u043b Python \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Docker<\/h2>\n<p>  <\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/721\/21d\/9e5\/72121d9e52d7968040e6f41bc7694221.webp\" height=\"500\"\/><br \/>   Image: Alice Lang, alicelang-creations@outlook.fr  <\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044f \u0447\u0435\u0440\u0435\u0437 docker compose \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 Python 3.4, \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a <code>requirements.txt<\/code>: \u0443\u043a\u0430\u0437\u0430\u043b \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0434\u043e\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0432 \u0444\u0430\u0439\u043b.<br \/>  \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <code>pip-tools<\/code> (\u0430 \u0442\u043e\u0447\u043d\u0435\u0435, <code>pip-compile<\/code>) \u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b <code>poetry<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u043e\u043b\u0443\u0447\u0438\u043b lock \u0444\u0430\u0439\u043b \u0441 \u0445\u044d\u0448\u0430\u043c\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432. \u0424\u0443\u0444, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u0447\u0435\u0440\u0435\u0437 <code>poetry add \"package_name&lt;=version\"<\/code><\/p>\n<p>  <\/p>\n<blockquote><p>\u041e\u0431\u044b\u0447\u043d\u043e \u0434\u043b\u044f \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0432\u0435\u0440\u0441\u0438\u044e: \u00ab\u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0439 \u0432\u044b\u0448\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438\u00bb, \u043e\u0434\u043d\u0430\u043a\u043e, \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 \u0440\u0443\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f, \u0441\u0442\u043e\u0438\u0442 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u00ab\u043c\u0435\u043d\u044c\u0448\u0435, \u0440\u0430\u0432\u043d\u043e\u00bb. \u0423\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c >= \u043d\u0430 ^<\/p><\/blockquote>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0437\u0430 5 \u043b\u0435\u0442 \u0431\u0435\u0437 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0440\u044f\u0434 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0443\u0441\u0442\u0430\u0440\u0435\u043b, \u0447\u0442\u043e-\u0442\u043e \u0443\u043c\u0435\u0440\u043b\u043e, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u044b \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043d\u043e\u0432\u044b\u0435.<br \/>  \u041f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0438\u0437\u0443\u0447\u0430\u043b, \u0447\u0442\u043e \u044f \u043c\u043e\u0433\u0443 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u043a\u0430\u043a\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0441\u0442\u0430\u043b\u0438 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<br \/>  \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c, \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0445 Changelog \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<blockquote><p>\u041a\u0440\u0443\u043f\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0442\u0438\u043f\u0430 <code>lxml<\/code>, <code>pandas<\/code>, <code>numpy<\/code> \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043d\u0438\u0436\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u041d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438 \u044d\u0442\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 API.<\/p><\/blockquote>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"https:\/\/docs.djangoproject.com\/en\/4.1\/faq\/install\/#what-python-version-can-i-use-with-django\">\u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 Python \u0438 Django \u0432\u0435\u0440\u0441\u0438\u0439<\/a><\/p>\n<p>  <\/p>\n<ol>\n<li>Python 3.4 + Django 1.9<\/li>\n<li>Python 3.4 + Django 1.11<\/li>\n<li>Python 3.4 + Django 2.0.13 <br \/> \n<ul>\n<li>\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 <code>from django.urls import path<\/code> \u0434\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f <code>urls.py<\/code><\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <code>on_delete=<\/code> \u0434\u043b\u044f <code>ForeignKey<\/code>\/<code>OneToOneField<\/code> \u043f\u043e\u043b\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/li>\n<li>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 <code>MIDDLEWARE_CLASSES<\/code> \u043d\u0430 <code>MIDDLEWARE<\/code><\/li>\n<li>\u0417\u0434\u0435\u0441\u044c <a href=\"https:\/\/habr.com\/ru\/post\/417837\/\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Python 3.6 + Django 2.0.13<br \/> \n<ul>\n<li>\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 <code>f-string<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Python 3.6 + Django 2.2<\/li>\n<li>Python 3.6 + Django 3.2.16 <br \/> \n<ul>\n<li>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 <code>from django.utils.six import text_type<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Python 3.10 + Django 3.2.16<br \/> \n<ul>\n<li>\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0433\u0440\u0443\u043f\u043f\u044b \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432 <code>poetry<\/code> (\u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f, \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432)<\/li>\n<\/ul>\n<\/li>\n<li>Python 3.10 + Django 4.1<br \/> \n<ul>\n<li>\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 <code>from django.utils.translation import ugettext_lazy<\/code> -> <code>gettext_lazy<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Python 3.11 + Django 4.1<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u043b \u043e\u0431\u0440\u0430\u0437 \u0441 \u043d\u043e\u0432\u044b\u043c \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u043b \u0442\u0435\u0441\u0442\u044b, \u0443\u0434\u0430\u043b\u044f\u043b\/\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u043f\u0430\u043a\u0435\u0442\u044b, \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043e\u0434 \u043f\u043e\u0434 \u0432\u0435\u0440\u0441\u0438\u044e Django, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f <a href=\"https:\/\/docs.djangoproject.com\/en\/4.1\/internals\/deprecation\/\">deprecations<\/a>, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u043e\u0432\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438. \u0418 \u0442\u0430\u043a \u043f\u043e \u043a\u0440\u0443\u0433\u0443.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043e\u0431\u0440\u0430\u0437 \u0441 Python 3.11 + Django 4.1, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0433\u043a\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<\/p>\n<p>  <\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 <code>pyenv<\/code> \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0441 Python 3.11, \u043f\u0440\u043e\u0433\u043d\u0430\u043d\u044b \u0442\u0435\u0441\u0442\u044b \u0435\u0449\u0435 \u0440\u0430\u0437.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<p>  <\/p>\n<hr\/>\n<p>  <\/p>\n<h2 id=\"vyvody\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  <\/p>\n<p>\u0412\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 1 \u0438\u0437 4 \u0447\u0430\u0441\u0442\u044c \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439. \u0414\u043b\u044f \u0441\u0435\u0431\u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0430\u043a\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0414\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 Python 3.4, 3.5, 3.6 \u0447\u0435\u0440\u0435\u0437 <code>pyenv<\/code> \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b. \u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c <code>pip install<\/code> \u0438 \u0442\u0430\u043a \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.<\/li>\n<li>\u0421 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 <code>poetry<\/code> (\u0434\u0430\u0436\u0435 \u043f\u043e \u0441\u0445\u0435\u043c\u0435 <code>requirements.txt<\/code> -> <code>pip-tools<\/code> -> <code>poetry<\/code>) \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. <code>Poetry<\/code> \u0432 \u043f\u0430\u0440\u0443 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 python, \u0438 \u0441\u0430\u043c\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/li>\n<li>\u0412\u043e\u0442 \u0434\u043e \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0432\u0435\u0441\u0442\u0438 \u00ab\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0439\u00bb \ud83d\ude42<\/li>\n<\/ul>\n<p>  <\/p>\n<p>P.S. \u0410\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u0435\u0441\u044c\u043c\u0430 \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041e\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435\u0441\u044c \u043a\u043e \u043c\u043d\u0435, <a href=\"https:\/\/habr.com\/ru\/users\/axsapronov\/\" class=\"user_link\">axsapronov<\/a>, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e.<\/p>\n<p>  <\/p>\n<hr\/>\n<p>  <\/p>\n<p>\u041d\u041b\u041e \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u043b\u043e \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u043c\u043e\u043a\u043e\u0434 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430:<br \/>  \u2014 <a href=\"https:\/\/firstvds.ru\/?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=product&amp;utm_content=vds15exeptprogrev\">15% \u043d\u0430 \u0432\u0441\u0435 \u0442\u0430\u0440\u0438\u0444\u044b VDS<\/a> (\u043a\u0440\u043e\u043c\u0435 \u0442\u0430\u0440\u0438\u0444\u0430 \u041f\u0440\u043e\u0433\u0440\u0435\u0432) \u2014 <strong>HABRFIRSTVDS<\/strong>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/first\/blog\/709068\/\"> https:\/\/habr.com\/ru\/company\/first\/blog\/709068\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p> <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/eh\/3z\/ox\/eh3zoxd69r3mhnb6jqproign8dg.png\" height=\"500\" data-src=\"https:\/\/habrastorage.org\/webt\/eh\/3z\/ox\/eh3zoxd69r3mhnb6jqproign8dg.png\"\/>  <\/p>\n<p>  <\/p>\n<p>Python \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 IT-\u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0443\u0436\u0435 9 \u043b\u0435\u0442, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f\u0445, \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0440\u0435\u043b\u0438\u0437\u0430\u0445. \u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0430\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u0438 \u0443\u0436\u0435 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u043b\u0430. \u0411\u043e\u043b\u0435\u0435 5 \u043b\u0435\u0442 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u0441\u0438\u043b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. Django \u0441 1.9 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c \u0443\u0436\u0435 \u0434\u043e 4.1 \u0432\u0435\u0440\u0441\u0438\u0438, Python 3.4 \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d, \u0434\u0430 \u0434\u0430\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 pip \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043d.<\/p>\n<p>  <\/p>\n<p>\u0412 4 \u0447\u0430\u0441\u0442\u044f\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0438\u0446\u0430, \u043a\u0430\u043a 9-\u043b\u0435\u0442\u043d\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f outdated \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0432 actual \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0431\u0440\u0430\u043b 100 \u0431\u0430\u043b\u043b\u043e\u0432 \u0432 PageSpeed.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e Python \u0438 Django.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-344748","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344748"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344748\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}