Skip to content

Instantly share code, notes, and snippets.

@aliuq
Last active October 27, 2024 16:50
Show Gist options
  • Select an option

  • Save aliuq/f8fb610375c3224bf4fe81387318f9a5 to your computer and use it in GitHub Desktop.

Select an option

Save aliuq/f8fb610375c3224bf4fe81387318f9a5 to your computer and use it in GitHub Desktop.

Revisions

  1. aliuq renamed this gist Mar 12, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. aliuq renamed this gist Mar 12, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. aliuq created this gist Mar 12, 2023.
    8 changes: 8 additions & 0 deletions demo.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # 在项目根目录下添加一个虚拟环境 venv
    python3 -m venv venv
    # 激活虚拟环境
    source venv/bin/activate
    # 在虚拟环境下安装依赖,依赖隔离
    pip install -r requirement.txt
    # 退出虚拟环境
    deactivate