# Hh5 scratch and analysis3 environment

**URL:** <https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965>\
**Category:** Infrastructure\
**Tags:** help, conda\
**Created:** [5 December 2024 02:21 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965 "2024-12-05T02:21:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Barnes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/michael_barnes/32/247_2.png) [@Michael\_Barnes](https://forum.access-hive.org.au/u/Michael_Barnes)\
**Post date:** [5 December 2024 02:21 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965/1 "2024-12-05T02:21:15Z")

</div>

I am trying to pip install packages on my user in the analysis3 environment on hh5. However, I get errors relating to disk quota. When looking at the at the hh5 scratch, I noticed that it seems to be full. Would this be the reason for this? If so, understanding that ACCESS-NRI is taking over the analysis3 environment, would it be possible to clear out some of this space?

--------------------SUMMARIES--------------------  
FILESYSTEM GROUP SPACE USED TOTAL SIZE COUNT  
scratch hh5 44.8T 44.8T 129454

---

<div class="post-metadata">

**Author:** ![Flick.Chun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/flick.chun/32/2295_2.png) [@Flick.Chun](https://forum.access-hive.org.au/u/Flick.Chun)\
**Post date:** [5 December 2024 23:26 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965/2 "2024-12-05T23:26:43Z")

</div>

Hi @Michael_Barnes,  
Thanks for your message, this is good to highlight to the rest of hh5 users and a message should probably sent through nci.  
However, ACCESS-NRI will be managing the conda environments, but not the project itself, data, storage, this is noted in project description here: [hh5](https://my.nci.org.au/mancini/project/hh5).

---

<div class="post-metadata">

**Author:** ![Scott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/scott/32/37_2.png) [@Scott](https://forum.access-hive.org.au/u/Scott)\
**Post date:** [5 December 2024 23:48 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965/3 "2024-12-05T23:48:52Z")

</div>

You shouldn’t need to create anything in /scratch/hh5.

The central conda environment isn’t writable, you need to make sure you add the `--user` flag when doing a pip install.

(for whoever’s taking over the modules, it may be worth having the module set environment variable PIP\_TARGET which should change where pip installs things to)

---

<div class="post-metadata">

**Author:** ![Michael\_Barnes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/michael_barnes/32/247_2.png) [@Michael\_Barnes](https://forum.access-hive.org.au/u/Michael_Barnes)\
**Post date:** [6 December 2024 00:27 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965/4 "2024-12-06T00:27:35Z")

</div>

Hi Scott and Felicity.  
All good to know, thanks! @Scott,I do pip with --user, but the default for some reason when pulling the files is to hh5. I have also tried using --target but no such luck. How does one change their PIP\_TARGET location?

---

<div class="post-metadata">

**Author:** ![Scott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/scott/32/37_2.png) [@Scott](https://forum.access-hive.org.au/u/Scott)\
**Post date:** [6 December 2024 00:50 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965/5 "2024-12-06T00:50:04Z")

</div>

Make sure your home directory has space (`quota -s`)

Something like this would create separate pip targets for each conda environment to avoid conflicts

```bash
export PIP_TARGET=/scratch/$PROJECT/$USER/tmp/pip/$CONDA_DEFAULT_ENV
export PYTHONPATH=$PIP_TARGET:$PYTHONPATH

python -m pip install -e .

```

---

<div class="post-metadata">

**Author:** ![Michael\_Barnes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/michael_barnes/32/247_2.png) [@Michael\_Barnes](https://forum.access-hive.org.au/u/Michael_Barnes)\
**Post date:** [6 December 2024 01:33 UTC](https://forum.access-hive.org.au/t/hh5-scratch-and-analysis3-environment/3965/6 "2024-12-06T01:33:27Z")

</div>

Thanks! I will give this a go.
