Memo: Lang - Python | Packages

Table of contents

Pip

Install

References:

  1. Requirements File Format
  2. pip install - pip documentation

Issues:

  1. pip install

Notes:

  1. extra_index_url argument

    1
    
    pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
    
  2. fr2-Docs

    pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    
    # environment.yaml for conda
    name: CONDA_ENV_NAME
    channels:
      - pytorch
      - conda-forge
      - defaults
    dependencies:
      - python=3.8
      - pip
      - matplotlib=3.4.3
      - numpy
      - pip:
        - torch==1.9.0+cu111
        - torchvision==0.10.0+cu111
        - -f https://download.pytorch.org/whl/torch_stable.html
    
  3. git


  1. -U Upgrade specified packagesr2-Docs

cache

(2024-04-07)

pip uses incorrect cached package version, instead of the user-specified version - SO

1
2
pip cache list # stored wheel files previously compiled
pip install --no-cache-dir <package>   # re-download

to read

(2024-05-21)

Python 包管理工具 pip 详解 - muzing


Poetry

Problems:

  1. 王树义’s project uses poetry installr1-Bilibili. What is poetry?

References:

  1. 如何安装使用我的 Web 界面 AI 工作流? workflows_with_litellm_pub 设置运行详解 - Bilibili - 王树义老师
  2. wshuyi/workflows_with_litellm_pub - GitHub
  3. [DeepSeek](https://chat.deepseek.com/a/chat/s/d42679bc-3281-40fa-9616-2f4c292ef5e3)

Notes:

(2025-04-03)

  1. The similarities between poetry and condar3-DS.

GUI

tkinter

  1. Widgets


  1. Events


  1. Protocol


pyinstaller

  1. pyinstaller

Built with Hugo
Theme Stack designed by Jimmy