Installing of a local python package

Hello,
I created my own local python package asa part of the project, it is part of the GIT repo. Locally I use the requirements file for installation and the “my_package” is installed fine. yet the on server seems not to work.
This is the repo : Astig Web - a Hugging Face Space by yoavkt but it generally looks as following

I created a git repo that looks as the following
astig_web
app.py
myprimelib
myprimelib
prime_numbers.py
init.py
setup.py
requirements.txt

The requirement file looks as follows:
pandas
./myprimelib

We loading I receive the following:
→ RUN pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
ERROR: Invalid requirement: ‘./myprimelib’ (from line 2 of requirements.txt)
Hint: It looks like a path. File ‘./myprimelib’ does not exist.
WARNING: You are using pip version 22.0.2; however, version 22.3.1 is available.
You should consider upgrading via the ‘/usr/local/bin/python -m pip install --upgrade pip’ command.

1 Like