Files
OneForAll-mirror/docs/installation_dependency.md
T
2019-10-28 11:33:58 +08:00

2.2 KiB

安装依赖

你可以通过pip3和pipenv两种方法安装OneForAll的依赖(如果你熟悉pipenv,那么推荐使用你使用pipenv):

  • Windows系统(注意:如果你的Python3安装在系统Program Files目录下,如:C:\Program Files\Python38,那么请以管理员身份运行命令提示符cmd执行以下命令!)

    1. 使用pipenv
    cd OneForAll/
    python -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 python oneforall.py --help
    
    1. 使用pip3
    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系统

    1. 使用pipenv
    cd OneForAll/
    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
    
    1. 使用pip3
    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
    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
    
    1. 使用pip3
    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