{"id":592,"date":"2024-02-26T18:36:56","date_gmt":"2024-02-26T17:36:56","guid":{"rendered":"https:\/\/artheodoc.fr\/?p=592"},"modified":"2024-02-26T18:36:56","modified_gmt":"2024-02-26T17:36:56","slug":"problemes-pour-linstallation-de-pillow-avec-pip3-sous-debian-12","status":"publish","type":"post","link":"https:\/\/artheodoc.fr\/index.php\/2024\/02\/26\/problemes-pour-linstallation-de-pillow-avec-pip3-sous-debian-12\/","title":{"rendered":"Probl\u00e8mes pour l\u2019installation de pillow avec pip3 sous Debian 12"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">J\u2019ai voulu installer la biblioth\u00e8que pillow avec pip3 sous Debian 12\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>apt install python3-pip<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>pip3 install pillow<\/strong><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">J\u2019ai eu le message d\u2019erreur suivant\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">error\u00a0: externally-managed-environment\n\nThis environment is externally managed\nTo install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.\n\nIf you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path\/to\/venv. Then use path\/to\/venv\/bin\/python and path\/to\/venv\/bin\/pip. Make sure you have python3-full installed.\n\nIf you wish to install a non-Debian packaged Python application, if may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed.\n\nSee usr\/share\/doc\/puthon3.11\/README.venv for more information.<\/pre>\n\n\n\n<p class=\"has-medium-font-size\">Traduction\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">erreur : environnement g\u00e9r\u00e9 en externe\n\nCet environnement est g\u00e9r\u00e9 en externe\nPour installer les packages Python \u00e0 l'\u00e9chelle du syst\u00e8me, essayez <strong>apt install python3-xyz<\/strong>, o\u00f9 xyz est le package que vous essayez d'installer.\n\nSi vous souhaitez installer un paquet Python non-Debian, cr\u00e9ez un environnement virtuel en utilisant python3 -m venv path\/to\/venv. Utilisez ensuite path\/to\/venv\/bin\/python et path\/to\/venv\/bin\/pip. Assurez-vous que python3-full est install\u00e9.\n\nSi vous souhaitez installer une application Python non-Debian, il peut \u00eatre plus simple d'utiliser pipx install xyz, qui g\u00e9rera un environnement virtuel pour vous. Assurez-vous que pipx est install\u00e9.\n\nVoir usr\/share\/doc\/puthon3.11\/README.venv pour plus d'informations.<\/pre>\n\n\n\n<p class=\"has-medium-font-size\">J\u2019ai r\u00e9solu le probl\u00e8me en installant en administrateur root le paquet python3-pillow avec apt\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>apt install python3-pillow<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>J\u2019ai voulu installer la biblioth\u00e8que pillow avec pip3 sous Debian 12\u00a0: apt install python3-pip pip3 install pillow J\u2019ai eu le message d\u2019erreur suivant\u00a0: error\u00a0: externally-managed-environment This environment is externally managed To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[30],"tags":[34,32,33,31,35],"class_list":["post-592","post","type-post","status-publish","format-standard","hentry","category-python","tag-pillow","tag-pip","tag-pip3","tag-python","tag-python3-pip"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=592"}],"version-history":[{"count":1,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":593,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/592\/revisions\/593"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/categories?post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/tags?post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}