Start by creating a virtual environment in your project directory:  
```bash
python -m venv .env
```  
Activate the virtual environment. On Linux and macOS:  
```bash
source .env/bin/activate
```  
Activate virtual environment on Windows:  
```bash
.env/Scripts/activate
```  
Now you're ready to install `huggingface_hub` [from the PyPi registry](https://pypi.org/project/huggingface-hub/):  
```bash
pip install --upgrade huggingface_hub
```