It is highly recommended to install `huggingface_hub` in a [virtual environment](https://docs.python.org/3/library/venv.html).
If you are unfamiliar with Python virtual environments, take a look at this [guide](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/).
A virtual environment makes it easier to manage different projects, and avoid compatibility issues between dependencies.  
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
```  
Once done, [check installation](#check-installation) is working correctly.