Python Project Install - develop vs install & setuptools vs pip

The problem: I don’t understand the difference between setup.py develop and setup.py install I don’t understand the difference between setup.py develop and pip install -e [dir] I don’t see the changes to my code when I import my code The difference between setup.py develop and setup.py install In short, you want to run setup.py develop when you are editing code because when you run setup.py install, it will copy your code into site-packages thus if you want to test your latest code you will need to install (copy) again. On the other hand, with develop, it creates a link to your source code so that when you import your code, it is your latest code. ...

March 5, 2018 · 3 min · Naoko Reeves

No Space Left Error when pip install

The Problem: Got OSError: [Errno 28] No space left on device When your home directory where your virtual environment located has more than enough space… Why?: The culprit is likely that your /tmp 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 /tmp that package installation requires then you will get disk space error. ...

December 26, 2017 · 1 min · Naoko Reeves