Installation
Translated by GPT-4.
Install Python
This project is written in Python, which means you need to install a copy of Python. Theoretically, the minimum version is 3.7, but this project has been fully tested on 3.9 and 3.11 I only used these two versions for a long time, and the 3.11 version is recommended.
Installing software should be an essential skill, especially if you're using Linux, you should learn how to install from a package manager or compile it. The installation process will not be detailed here.
Download Source Code
You can either download and unzip the source code from the latest version on the release page, or use git to pull the source code for download.
- Git
- Compressed Package
Pull the source code of the master
branch using Git.
git clone -b master https://github.com/skymkmk/EhFavDownloader.git
You can also follow the steps below for version updates.
Then, check the latest version and switch to the specified version.
git fetch origin
git tag
Take the following output as an example
...
v0.3.0
v0.3.1
v0.4.0
To use the latest version, we should switch to v0.4.0. Replace the angle bracket part of the next instruction with this string (including the angle brackets):
git checkout -b <replace me> <replace me>
Download any compressed package from the release page and unzip it. If you are using a Linux system, it is recommended to download Source code (tar.gz)
, and then use
tar xf <download directory>
to unzip it.
Install Dependencies
Using a virtual environment (recommended)
It is recommended to use venv to manage the virtual environment. First, go to the directory and execute
python -m venv venv
to create a virtual environment, and then execute
- Linux (bash)
- Windows (PowerShell)
source ./venv/bin/activate
.\venv\Scripts\activate
to activate the virtual environment.
Enter the project root directory and execute
pip install -r requirements.txt
to install the dependencies.