Toolbox: pipκ°€ μ„€μΉ˜λœ python 도ꡬ가 도ꡬ μƒμž λ‚΄μ—μ„œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2021λ…„ 06μ›” 01일  Β·  4μ½”λ©˜νŠΈ  Β·  좜처: containers/toolbox

λ‚˜λŠ” pip/pipxλ₯Ό μ‚¬μš©ν•˜μ—¬ 파이썬 도ꡬλ₯Ό μ„€μΉ˜ν•©λ‹ˆλ‹€. ν˜ΈμŠ€νŠΈμ—μ„œ 이 μž‘μ—…μ„ μˆ˜ν–‰ν•˜λ©΄ 도ꡬ가 도ꡬ μƒμžμ—μ„œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 도ꡬ μƒμžμ— μ„€μΉ˜ν•˜λ©΄ 도ꡬ가 ν˜ΈμŠ€νŠΈμ—μ„œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

$ pipx install jrnl
Installing to existing venv 'jrnl'
  installed package jrnl 2.7.1, Python 3.9.5
  These apps are now globally available
    - jrnl
done! ✨ 🌟 ✨
$ jrnl --version                                                              
jrnl version v2.7.1
[..]
$ toolbox enter --container fedora-toolbox-32                                 
$ jrnl
Traceback (most recent call last):
  File "/var/home/hferreiro/.local/bin/jrnl", line 5, in <module>
    from jrnl.cli import cli
ImportError: No module named jrnl.cli
1. Bug 4. Not Toolbox

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

문제λ₯Ό μ°Ύμ•˜μŠ΅λ‹ˆλ‹€. λ‚΄ 도ꡬ μƒμžλŠ” Fedora 32에 있으며 기본값은 python2μž…λ‹ˆλ‹€. Fedora 34 도ꡬ μƒμžλ₯Ό μ‚¬μš©ν•˜λŠ” 데 λ¬Έμ œκ°€ μ—†μŠ΅λ‹ˆλ‹€.

λͺ¨λ“  4 λŒ“κΈ€

pipx μ›Ή μ‚¬μ΄νŠΈμ—μ„œ λ™μΌν•œ 예λ₯Ό λ”°λ¦…λ‹ˆλ‹€.

[oliver<strong i="6">@t480s</strong> src]$ pipx install cowsay
  installed package cowsay 4.0, Python 3.9.5
  These apps are now globally available
    - cowsay
done! ✨ 🌟 ✨
[oliver<strong i="7">@t480s</strong> src]$ cowsay Yeah
  ____
| Yeah |
  ====
    \
     \
       ^__^
       (oo)\_______
       (__)\       )\/\
           ||----w |
           ||     ||
[oliver<strong i="8">@t480s</strong> src]$ ./toolbox enter f34
β¬’[oliver<strong i="9">@toolbox</strong> src]$ cowsay moo
  ___
| moo |
  ===
   \
    \
      ^__^
      (oo)\_______
      (__)\       )\/\
          ||----w |
          ||     ||
β¬’[oliver<strong i="10">@toolbox</strong> src]$ 

μ΅œμ‹  도ꡬ μƒμž λΉŒλ“œμ™€ ν•¨κ»˜ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

jrnl의 λ¬Έμ œμΌκΉŒμš”? (저도 ν…ŒμŠ€νŠΈ ν•΄λ³΄κ² μŠ΅λ‹ˆλ‹€)

jrnl둜 ν…ŒμŠ€νŠΈν–ˆμœΌλ©° OOBμ—μ„œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

[oliver<strong i="6">@t480s</strong> src]$ pipx install jrnl
  installed package jrnl 2.8.1, Python 3.9.5
  These apps are now globally available
    - jrnl
done! ✨ 🌟 ✨
[oliver<strong i="7">@t480s</strong> src]$ ./toolbox enter f34
β¬’[oliver<strong i="8">@toolbox</strong> src]$ 
logout
[oliver<strong i="9">@t480s</strong> src]$ jrnl --version
jrnl version v2.8.1

Copyright (C) 2012-2021 jrnl contributors

This is free software, and you are welcome to redistribute it under certain
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
[oliver<strong i="10">@t480s</strong> src]$ ./toolbox enter f34
β¬’[oliver<strong i="11">@toolbox</strong> src]$ jrnl --version
jrnl version v2.8.1

Copyright (C) 2012-2021 jrnl contributors

This is free software, and you are welcome to redistribute it under certain
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
β¬’[oliver<strong i="12">@toolbox</strong> src]$ 

이 행도 μ€‘μš”ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Installing to existing venv 'jrnl'

문제λ₯Ό μ°Ύμ•˜μŠ΅λ‹ˆλ‹€. λ‚΄ 도ꡬ μƒμžλŠ” Fedora 32에 있으며 기본값은 python2μž…λ‹ˆλ‹€. Fedora 34 도ꡬ μƒμžλ₯Ό μ‚¬μš©ν•˜λŠ” 데 λ¬Έμ œκ°€ μ—†μŠ΅λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰