Skip to content

Commit

Permalink
added advice re. TMPDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpritchard committed Mar 18, 2024
1 parent 9751715 commit 44ec5a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/docs/software-on-jasmin/python-virtual-environments.md
Expand Up @@ -122,6 +122,20 @@ If the package requires other packages that are not already installed into the
virtual environment, then `pip` will use the package's requirements file to
install them automatically from PyPI.

One thing to consider when doing this, is that some temporary space is needed
by the install process. The location of this temporary space may be set by default
to `/tmp`, which is restricted on the `sci` machines.

You might see this error, despite having ample free space in your own home directory:

```bash
ERROR: Could not install packages due to an OSError: \
[Errno 122] Disk quota exceeded
```

In order to avoid encountering this,
you are advised to {{<link "../getting-started/storage/#avoid-inadvertently-writing-to-tmp">}}follow this advice{{</link>}} to over-ride the `TMPDIR` environment variable, setting it to the location of somewhere you know have free space. Don't forget to clean up afterwards!

To upgrade an existing package, use:

{{<command user="user" host="sci1">}}
Expand Down

0 comments on commit 44ec5a5

Please sign in to comment.