{"id":4613,"date":"2024-01-18T18:27:42","date_gmt":"2024-01-18T18:27:42","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4613"},"modified":"2024-01-18T19:08:59","modified_gmt":"2024-01-18T19:08:59","slug":"installing-packages-on-windows","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/python-on-windows\/installing-packages-on-windows","title":{"rendered":"Installing packages on Windows"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Installing via VS code<\/h4>\n\n\n\n<p>Use the &#8216;Terminal&#8217; window, the &#8216;Python&#8217; one<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Installing<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install &lt;package-name><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Installing into main Python folder (not necessarily the same one your VS Code is using!)<\/h4>\n\n\n\n<p>Python comes with the pip package manger<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Installing \/ updating<\/h5>\n\n\n\n<p>Use the windows command prompt <strong>&lt;&lt;&lt;Use &#8216;Run as administrator&#8217; to it can write to the Python install directory<\/strong><br>change to the directory for your Python install (change the number as necessary)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd C:\\Program Files\\Python312<\/code><\/pre>\n\n\n\n<p>Then use pip to install your package<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip.exe install &lt;package-name&gt;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Upgrading a package<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>pip.exe install --upgrade &lt;package-name&gt;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Removing a package<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>pip.exe uninstall &lt;package-name&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Installing via VS code Use the &#8216;Terminal&#8217; window, the &#8216;Python&#8217; one Installing Installing into main Python folder (not necessarily the same one your VS Code is using!) Python comes with the pip package manger Installing \/ updating Use the windows command prompt &lt;&lt;&lt;Use &#8216;Run as administrator&#8217; to it can write to the Python install directorychange [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[341],"tags":[],"class_list":["post-4613","post","type-post","status-publish","format-standard","hentry","category-python-on-windows"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4613"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4613\/revisions"}],"predecessor-version":[{"id":4623,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4613\/revisions\/4623"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}