Installation¶
In the following sections I will guide you through the installation process of the required components for this project.
Prerequisites¶
Ollama (optional for local models)
Install the library¶
The library is available on PyPI, so it can be installed using the following command:
pip install scrapegraphai
Important
It is higly recommended to install the library in a virtual environment (conda, venv, etc.)
If your clone the repository, it is recommended to use a package manager like rye. To install the library using rye, you can run the following command:
rye pin 3.10
rye sync
rye build
Caution
Rye must be installed first by following the instructions on the official website.
Additionally on Windows when using WSL¶
If you are using Windows Subsystem for Linux (WSL) and you are facing issues with the installation of the library, you might need to install the following packages:
sudo apt-get -y install libnss3 libnspr4 libgbm1 libasound2