

{"id":123,"date":"2022-05-11T16:33:39","date_gmt":"2022-05-11T23:33:39","guid":{"rendered":"https:\/\/peden.ece.uw.edu\/computing\/?page_id=123"},"modified":"2024-08-30T14:50:12","modified_gmt":"2024-08-30T21:50:12","slug":"custom-config-python","status":"publish","type":"page","link":"https:\/\/peden.ece.uw.edu\/computing\/linux-lab\/custom-config-python\/","title":{"rendered":"Custom Configuration &#8211; Python Modules and Builds"},"content":{"rendered":"<p><strong>Students do not have root permission on Linux Lab machines. So if students need to install additional software, they need to do it under their own home directories (which has the advantage of &#8220;install once, run on any Lab node&#8221;).<\/strong><!--more--><\/p>\n<p><strong>Python 3.11 is the current version installed on all machines in the ECE Linux Lab.<\/strong><\/p>\n<p>The <tt>pip3<\/tt> command can be used to install modules etc. under your home directory via:<\/p>\n<blockquote>\n<pre>$ <b>pip3 install --user pandas<\/b>\r\n...\r\n<\/pre>\n<\/blockquote>\n<h2>virtualenv<\/h2>\n<p>Local python module installs are possible using <a href=\"http:\/\/www.virtualenv.org\/\">virtualenv<\/a> on the <a href=\"\/computing\/linux-lab\/\">Linux Lab<\/a> systems. In a terminal, run the following shell commands:<\/p>\n<blockquote>\n<pre>$ <b>cd<\/b>\r\n$ <b>mkdir python-stuff<\/b>\r\n$ <b>cd python-stuff<\/b>\r\n$ <b>virtualenv-3 .<\/b>\r\n...\r\n$ <b>.\/bin\/pip3 install pandas<\/b>\r\n...\r\n<\/pre>\n<\/blockquote>\n<p>the last of which may take some time to compile. <a href=\"http:\/\/www.pip-installer.org\/\">See the <tt>pip<\/tt> docs for more information on searching for and installing packages<\/a>.<\/p>\n<p>If you need a specific version of python build and install it under your home directory:<\/p>\n<blockquote>\n<pre>$ <b>wget https:\/\/www.python.org\/ftp\/python\/3.6.5\/Python-3.6.5.tgz<\/b>\r\n$ <b>wget https:\/\/www.python.org\/ftp\/python\/3.6.5\/Python-3.6.5.tgz.asc<\/b>\r\n$ <b>gpg --keyserver hkp:\/\/keys.gnupg.net --recv-keys AA65421D<\/b>\r\n$ <b>gpg --verify Python-3.6.5.tgz.asc<\/b>\r\ngpg: Signature made Wed 28 Mar 2018 03:28:12 AM PDT using RSA key ID AA65421D\r\ngpg: Good signature from \"Ned Deily (Python release signing key) &lt;nad@python.org&gt;\"\r\n...\r\n$ <b>tar xzf Python-3.6.5.tgz<\/b>\r\n$ <b>cd Python-3.6.5<\/b>\r\n$ <b>unset CFLAGS<\/b>\r\n$ <b>.\/configure --prefix=$HOME\/python-3.6.5 &amp;&amp; make &amp;&amp; make install<\/b>&lt;\/nad@python.org&gt;<\/pre>\n<\/blockquote>\n<p>Scripts can now use the <tt>\/homes\/urlogin\/python-3.6.5\/bin\/python3<\/tt> path to reference that custom install.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Students do not have root permission on Linux Lab machines. So if students need to install additional software, they need to do it under their own home directories (which has the advantage of &#8220;install once, run on any Lab node&#8221;).<\/p>\n<div><a class=\"more\" href=\"https:\/\/peden.ece.uw.edu\/computing\/linux-lab\/custom-config-python\/\">Read more<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":111,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[16],"class_list":["post-123","page","type-page","status-publish","hentry","tag-linux"],"_links":{"self":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":5,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/123\/revisions"}],"predecessor-version":[{"id":537,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/123\/revisions\/537"}],"up":[{"embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/pages\/111"}],"wp:attachment":[{"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peden.ece.uw.edu\/computing\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}