<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pip on the art of simplicity</title><link>https://naoko.github.io/tags/pip/</link><description>Recent content in Pip on the art of simplicity</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 05 Mar 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://naoko.github.io/tags/pip/index.xml" rel="self" type="application/rss+xml"/><item><title>Python Project Install - develop vs install &amp; setuptools vs pip</title><link>https://naoko.github.io/posts/2018-03-05-your-project-install-pip-setup/</link><pubDate>Mon, 05 Mar 2018 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2018-03-05-your-project-install-pip-setup/</guid><description>&lt;h3 id="the-problem"&gt;The problem:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I don&amp;rsquo;t understand the difference between &lt;code&gt;setup.py develop&lt;/code&gt; and &lt;code&gt;setup.py install&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;I don&amp;rsquo;t understand the difference between &lt;code&gt;setup.py develop&lt;/code&gt; and &lt;code&gt;pip install -e [dir]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;I don&amp;rsquo;t see the changes to my code when I import my code&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="the-difference-between-setuppy-develop-and-setuppy-install"&gt;The difference between &lt;code&gt;setup.py develop&lt;/code&gt; and &lt;code&gt;setup.py install&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;In short, you want to run &lt;code&gt;setup.py develop&lt;/code&gt; when you are editing code because when you run
&lt;code&gt;setup.py install&lt;/code&gt;, it will copy your code into &lt;code&gt;site-packages&lt;/code&gt; thus if you want to test your
latest code you will need to &lt;code&gt;install&lt;/code&gt; (copy) again. On the other hand, with &lt;code&gt;develop&lt;/code&gt;, it creates
a link to your source code so that when you import your code, it is your latest code.&lt;/p&gt;</description></item><item><title>No Space Left Error when pip install</title><link>https://naoko.github.io/posts/2017-12-26-pip-install-no-space-left/</link><pubDate>Tue, 26 Dec 2017 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2017-12-26-pip-install-no-space-left/</guid><description>&lt;h3 id="the-problem"&gt;The Problem:&lt;/h3&gt;
&lt;p&gt;Got&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;OSError: &lt;span style="color:#ff79c6"&gt;[&lt;/span&gt;Errno 28&lt;span style="color:#ff79c6"&gt;]&lt;/span&gt; No space left on device
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When your home directory where your virtual environment located
has more than enough space&amp;hellip;&lt;/p&gt;
&lt;h3 id="why"&gt;Why?:&lt;/h3&gt;
&lt;p&gt;The culprit is likely that your &lt;code&gt;/tmp&lt;/code&gt; directory do not have enough space for
some reason.
During the pip installation, pip will use temporarily directory
to perform what is necessary to perform installation (e.g. download source etc).
Thus if you do not have enough space in &lt;code&gt;/tmp&lt;/code&gt; that package installation requires then
you will get disk space error.&lt;/p&gt;</description></item></channel></rss>