requirements.txt

ํŒŒ์ด์ฌ์œผ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋‹ค๋ณด๋ฉด pip ์œผ๋กœ ์—ฌ๋Ÿฌ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋Š”๋ฐ, ํ”„๋กœ์ ํŠธ์— ํ•„์š”ํ•œ ํŒจํ‚ค์ง€๋“ค์„ requirements.txt ๋กœ ๊ด€๋ฆฌํ•˜์—ฌ ํ•œ ๋ฒˆ์— ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Œ

์ด๋ฆ„์„ ๊ผญ requirements.txt ๋กœ ํ•  ํ•„์š”๋Š” ์—†๋Š”๋ฐ

๋Œ€๋ถ€๋ถ„ ํ”Œ์ ์—์„œ ์ € ์ด๋ฆ„์œผ๋กœ ๊ด€๋ฆฌํ•˜๋‹ˆ ์™ ๋งŒํ•˜๋ฉด ๋งž์ถ”์ž

  1. requirements.txt ์ƒ์„ฑ

    $ pip freeze > requirements.txt

    freeze ๋Š” pip ๋ช…๋ น์–ด

  2. requirements.txt ์˜ˆ

    alabaster==0.7.12
    alembic==1.0.11
    appnope==0.1.0
    atomicwrites==1.3.0
    attrs==19.1.0
    Babel==2.7.0
    backcall==0.1.0
    ...
    idna==2.8
    imagesize==1.1.0
    importlib-metadata==0.19
    ipykernel==5.1.2
    ipython==7.7.0
    ipython-genutils==0.2.0
    ipywidgets==7.5.1
    itsdangerous==1.1.0
    jdcal==1.4.1
  3. ํŒจํ‚ค์ง€ ์„ค์น˜

    requirements.txt ๊ฐ€ ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์•„๋ž˜ ๋ช…๋ น์–ด

    $ pip install -r requirements.txt
  4. ref

    • ๋‹จ์ˆœํžˆ ํ•ด๋‹น ๋ฒ„์ „ ์ด์ƒ ์„ค์น˜

      idna>=2.8
    • 2 ๋ฒ„์ „๋Œ€์˜ ์•„๋ฌด ๋ฒ„์ „ ์„ค์น˜

      idna>=2.*
    • ํŒจํ‚ค์ง€๋Š” venv ์— ์„ค์น˜ํ•˜์ž ~

Last updated