diff --git a/README.md b/README.md index 0587bfb..cc5dfcc 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,13 @@ It uses the module `requests` to fetch the lyric on music.163.com Netease Music supply us an api that we can get the lyric of the current song, so I make this program... ## Installation -First, you need a python(>=3.10) environment, and use `pip` to install these packages: `requests` `mutagen` `pycryptodomex` ->Feel complex? just copy this command to your terminal: `python3 -m pip install requests mutagen pycryptodomex` +First, you need a python(>=3.10) environment -Second, clone the entire project and run the command `python3 main.py` in the project folder. +Second, clone the entire project and install packages with the command below: +```commandline +python3 -m pip install -r requirements.txt +``` +Last, run the command `python3 main.py` in the project folder. ## What can it do? Just download lyrics. diff --git a/README_cn.md b/README_cn.md index 623528a..24497b4 100644 --- a/README_cn.md +++ b/README_cn.md @@ -9,10 +9,16 @@ 网易云音乐提供给我们了一个获取歌词的API ~~然后我就做了这个程序(~~ ## 爷要安装 -首先,你需要一个Python环境(要求版本>=3.10,因为使用了3.10python的新特性),然后使用pip来安装`requests` `mutagen` `pycryptodomex`这几个包 ->您觉得很麻烦?_~~事真多~~_ 直接复制这段命令到终端罢!(你得先有Python和pip): `python3 -m pip install requests mutagen pycryptodomex` +首先,你需要一个Python环境(要求版本>=3.10,因为使用了3.10python的新特性) -然后,把整个项目薅下来,在当前目录下运行`python3 main.py`就行了 +然后,把整个项目薅下来,安装依赖项目: +```commandline +python3 -m pip install -r requirements.txt +``` +最后运行下面命令: +```commandline +python3 main.py +``` ## 这玩意到底能干啥? ~~nmd~~这玩意就像它的名字一样,下载歌词用的