R
RunPod11mo ago
Daan

install in network volume

Hello, I want to install some dependencies, I run "pip install -r requirements.txt" in the directory where my network volume is mounted. However, I notice that these are not installed on the newtork volume, but on the container disk (so not permanently). How can I ensure that this is installed on the network volume and therefore preserved?
Solution:
Or in your case:
pip install --no-cache-dir -r requirements.txt
pip install --no-cache-dir -r requirements.txt
...
Jump to solution
6 Replies
ashleyk
ashleyk11mo ago
Create a venv otherwise the packages are installed on the container disk and not the network volume.
ashleyk
ashleyk11mo ago
SECourses
YouTube
Essential AI Tools and Libraries: A Guide to Python, Git, C++ Compi...
Welcome to the Pillars of AI Application Libraries: How to Install Tutorial! 🤖 Are you ready to embark on a journey of installing AI libraries and applications with ease? 💻 In this video, we'll guide you through the process of installing Python, Git, Visual Studio C++ Compile tools, and FFmpeg on your Windows 10 machine. 📊 We'll also show you ho...
Daan
DaanOP11mo ago
Hi, thanks for the quick response. I indeed have created a venv (it is created in the directory where the network volume is mounted). I activate the venv and then install, but have this problem. See the full error in the file my network volume is also 250GB so that should not be the problem
ashleyk
ashleyk11mo ago
Oh yeah, it uses the user home directory to cache things You can do this instead:
pip3 install --no-cache-dir module-name
pip3 install --no-cache-dir module-name
Solution
ashleyk
ashleyk11mo ago
Or in your case:
pip install --no-cache-dir -r requirements.txt
pip install --no-cache-dir -r requirements.txt
Daan
DaanOP11mo ago
solved! thanks.
Want results from more Discord servers?
Add your server