mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
更新Linux下依赖安装帮助
This commit is contained in:
@@ -1,64 +1,84 @@
|
|||||||
# 安装依赖
|
# 安装依赖
|
||||||
|
|
||||||
你可以通过pip3和pipenv两种方法安装OneForAll的依赖(如果你熟悉[pipenv](https://docs.pipenv.org/en/latest/),那么推荐使用你使用pipenv):
|
你可以通过pip3和pipenv两种方法安装OneForAll的依赖(熟悉哪种就用哪种):
|
||||||
|
|
||||||
* **Windows系统**(注意:如果你的Python3安装在系统Program Files目录下,如:`C:\Program Files\Python38`,那么请以管理员身份运行命令提示符cmd执行以下命令!)
|
## Windows系统
|
||||||
|
|
||||||
1. 使用pipenv
|
注意:如果你的Python3安装在系统Program Files目录下,如:`C:\Program Files\Python38`,那么请以管理员身份运行命令提示符cmd执行以下命令!
|
||||||
|
|
||||||
```bash
|
1. 使用pipenv安装依赖
|
||||||
cd OneForAll/
|
```bash
|
||||||
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
cd OneForAll/
|
||||||
pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
pipenv install --python 3.8
|
pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
cd oneforall
|
pipenv install --python 3.8
|
||||||
pipenv run python oneforall.py --help
|
cd oneforall
|
||||||
```
|
pipenv run python oneforall.py --help
|
||||||
|
```
|
||||||
|
|
||||||
2. 使用pip3
|
2. 使用pip3安装依赖
|
||||||
|
```bash
|
||||||
|
cd OneForAll/
|
||||||
|
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
cd oneforall/
|
||||||
|
python oneforall.py --help
|
||||||
|
```
|
||||||
|
## Linux系统
|
||||||
|
|
||||||
```bash
|
* **Ubuntu/Debian系统(包括kali)**
|
||||||
cd OneForAll/
|
安装git
|
||||||
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
```bash
|
||||||
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
sudo apt update
|
||||||
cd oneforall/
|
sudo apt install git
|
||||||
python oneforall.py --help
|
```
|
||||||
```
|
|
||||||
* **Linux系统**
|
|
||||||
|
|
||||||
1. 使用pipenv
|
克隆OneForAll项目
|
||||||
```bash
|
```bash
|
||||||
cd OneForAll/
|
git clone https://gitee.com/shmilylty/OneForAll.git
|
||||||
sudo python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
```
|
||||||
sudo pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
|
||||||
sudo pipenv install --python 3.8
|
|
||||||
cd oneforall
|
|
||||||
pipenv run python3 oneforall.py --help
|
|
||||||
```
|
|
||||||
2. 使用pip3
|
|
||||||
```bash
|
|
||||||
cd OneForAll/
|
|
||||||
sudo python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
|
||||||
sudo pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
|
||||||
cd oneforall/
|
|
||||||
python3 oneforall.py --help
|
|
||||||
```
|
|
||||||
* **Darwin系统**
|
|
||||||
|
|
||||||
1. 使用pipenv
|
安装python及开发依赖
|
||||||
```bash
|
```bash
|
||||||
cd OneForAll/
|
sudo apt install python3.8 python3.8-dev
|
||||||
python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
```
|
||||||
pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
接下来你可以使用以下一种方式安装OneForAll的Python库依赖:
|
||||||
pipenv install --python 3.8
|
1. 使用pipenv安装依赖
|
||||||
cd oneforall
|
```bash
|
||||||
pipenv run python3 oneforall.py --help
|
cd OneForAll/
|
||||||
```
|
sudo python3.8 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
2. 使用pip3
|
sudo apt install pipenv
|
||||||
```bash
|
sudo pipenv install --python 3.8
|
||||||
cd OneForAll/
|
cd oneforall
|
||||||
python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
pipenv run python3 oneforall.py --help
|
||||||
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
```
|
||||||
cd oneforall/
|
|
||||||
python3 oneforall.py --help
|
2. 使用pip3安装依赖
|
||||||
```
|
```bash
|
||||||
|
cd OneForAll/
|
||||||
|
sudo apt install python3-pip
|
||||||
|
sudo python3.8 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
sudo pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
cd oneforall/
|
||||||
|
python3.8 oneforall.py --help
|
||||||
|
```
|
||||||
|
## Darwin系统
|
||||||
|
|
||||||
|
1. 使用pipenv安装依赖
|
||||||
|
```bash
|
||||||
|
cd OneForAll/
|
||||||
|
python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
pipenv install --python 3.8
|
||||||
|
cd oneforall
|
||||||
|
pipenv run python3 oneforall.py --help
|
||||||
|
```
|
||||||
|
|
||||||
|
2. 使用pip3安装依赖
|
||||||
|
```bash
|
||||||
|
cd OneForAll/
|
||||||
|
python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
cd oneforall/
|
||||||
|
python3 oneforall.py --help
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user