Pip: νŒ¨ν‚€μ§€μ˜ μ†ŒμŠ€ λ””λ ‰ν† λ¦¬μ—μ„œ ν˜ΈμΆœν•˜λ©΄ `pip uninstall`이 μ‹€νŒ¨ν•©λ‹ˆλ‹€.

에 λ§Œλ“  2019λ…„ 07μ›” 12일  Β·  3μ½”λ©˜νŠΈ  Β·  좜처: pypa/pip

ν™˜κ²½

  • 핍 버전: 19.1.1
  • 파이썬 버전: 3.6.8
  • OS: λ§₯OS

μ„€λͺ…

python3 -m pip install --user . λ₯Ό μ‚¬μš©ν•˜μ—¬ 둜컬 νŒ¨ν‚€μ§€ spam λ₯Ό μ„€μΉ˜ν–ˆμŠ΅λ‹ˆλ‹€. νŒ¨ν‚€μ§€ 폴더가 ν˜„μž¬ 디렉토리에 μžˆμ„ λ•Œ νŒ¨ν‚€μ§€λ₯Ό μ œκ±°ν•˜λ €κ³  ν•˜λ©΄ λ‹€μŒκ³Ό 같은 λ©”μ‹œμ§€κ°€ λ‚˜νƒ€λ‚©λ‹ˆλ‹€.

$ pwd
/Users/me/spam
$ ls
README.md  setup.cfg  setup.py  test  tox.ini  spam
$ python3 -m pip uninstall --verbose spam
Not sure how to uninstall: spam 0.0.1 - Check: /Users/me/spam  # this line only shown with --verbose flag
Can't uninstall 'spam'. No files were found to uninstall.

λ‹€λ₯Έ λ””λ ‰ν† λ¦¬μ—μ„œ μ‹€ν–‰ν•˜λ©΄ μ œκ±°κ°€ μ„±κ³΅μ μœΌλ‘œ μ™„λ£Œλ©λ‹ˆλ‹€.

$ cd \tmp && python3 -m pip uninstall --verbose spam
# successfully uninstalls...

μ˜ˆμƒλ˜λŠ” 행동
uninstall κ°€ 둜컬 λ””λ ‰ν† λ¦¬μ˜ λ‚΄μš©μ— 민감할 것이라고 κΈ°λŒ€ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. 이것이 기술적인 이유둜 μ˜ˆμƒλ˜λŠ” λ™μž‘μΈ 경우 stderr λ©”μ‹œμ§€ Can't uninstall 'spam'. No files were found to uninstall. λ₯Ό λ³€κ²½ν•˜μ—¬ λŒ€μƒ νŒ¨ν‚€μ§€ 이름이 μžˆλŠ” 둜컬 폴더가 있기 λ•Œλ¬Έμ— μ‹€νŒ¨ν•  수 μžˆμŒμ„ λ‚˜νƒ€λ‚΄λŠ” 데 더 도움이 λ©λ‹ˆλ‹€.

UX UX- error messages enhancement

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

@pfmoore νŽΈμ§‘ν•œ λ©”μ‹œμ§€κ°€ ν™•μ‹€νžˆ κ°œμ„ λ˜μ—ˆλ‹€κ³  μƒκ°ν•˜μ§€λ§Œ(μ‹œκ°„μ„ μ ˆμ•½ν•  수 있음), 더 λ‚˜μ•„κ°€κ² μŠ΅λ‹ˆλ‹€. Can't uninstall 'spam' (in current directory). No files were found to uninstall.\nTo uninstall 'spam' from the system library, run the same command from a directory without a 'spam' directory. (더 μ •ν™•ν•œ μš©μ–΄κ°€ μžˆλŠ” 경우 system library λ³€κ²½)와 같이 더 μœ μ΅ν•œ 것은 μ–΄λ–»μŠ΅λ‹ˆκΉŒ? λ„ˆλ¬΄ μž₯ν™©ν•©λ‹ˆκΉŒ?

λˆ„κ΅°κ°€κ°€ 이 λ©”μ‹œμ§€μ— λΆ€λ”ͺ힐 수 μžˆλŠ” μœ μΌν•œ μ‹œκ°„μ€ 그듀이 λ‚˜μ™€ λΉ„μŠ·ν•œ 상황에 μžˆλŠ” 경우인 것 κ°™μŠ΅λ‹ˆλ‹€. λ‚΄κ°€ 틀릴 μˆ˜λ„ μžˆμ§€λ§Œ cd path/to/site-packages && python3 -m pip uninstall spam 와 같은 ν˜„μž¬ λ””λ ‰ν† λ¦¬μ—μ„œ μ œκ±°ν•˜λŠ” 것은 ν•œκ³„ μ‚¬μš© μ‚¬λ‘€μ²˜λŸΌ 보이고 λˆ„κ΅°κ°€κ°€ κ·Έλ ‡κ²Œ ν•  만큼 μΆ©λΆ„νžˆ μ•Œκ³  μžˆλ‹€λ©΄ λ‚˜ 같은 μž…μœΌλ‘œ μˆ¨μ‰¬λŠ” μ‚¬λžŒλ“€μ„ μœ„ν•΄ μ‘°μ •λœ λ©”μ‹œμ§€λŠ” 그듀을 ν˜Όλ™ν•˜μ§€ μ•Šμ„ κ²ƒμž…λ‹ˆλ‹€.

λŒ€λΆ€λΆ„μ˜ μ‚¬μš©μžλŠ” λ‚΄κ°€ 그랬던 κ²ƒμ²˜λŸΌ - uninstall κ°€ λ§ˆλ²•μ²˜λŸΌ μ‹œμŠ€ν…œ λΌμ΄λΈŒλŸ¬λ¦¬μ—μ„œ νŒ¨ν‚€μ§€λ₯Ό 찾을 것이라고 κ°€μ •ν•˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

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

이 경우 였λ₯˜λ₯Ό Can't uninstall 'spam' (found in current directory). No files were found to uninstall. 둜 μˆ˜μ •ν•  수 μžˆμŠ΅λ‹ˆκΉŒ?

@pfmoore νŽΈμ§‘ν•œ λ©”μ‹œμ§€κ°€ ν™•μ‹€νžˆ κ°œμ„ λ˜μ—ˆλ‹€κ³  μƒκ°ν•˜μ§€λ§Œ(μ‹œκ°„μ„ μ ˆμ•½ν•  수 있음), 더 λ‚˜μ•„κ°€κ² μŠ΅λ‹ˆλ‹€. Can't uninstall 'spam' (in current directory). No files were found to uninstall.\nTo uninstall 'spam' from the system library, run the same command from a directory without a 'spam' directory. (더 μ •ν™•ν•œ μš©μ–΄κ°€ μžˆλŠ” 경우 system library λ³€κ²½)와 같이 더 μœ μ΅ν•œ 것은 μ–΄λ–»μŠ΅λ‹ˆκΉŒ? λ„ˆλ¬΄ μž₯ν™©ν•©λ‹ˆκΉŒ?

λˆ„κ΅°κ°€κ°€ 이 λ©”μ‹œμ§€μ— λΆ€λ”ͺ힐 수 μžˆλŠ” μœ μΌν•œ μ‹œκ°„μ€ 그듀이 λ‚˜μ™€ λΉ„μŠ·ν•œ 상황에 μžˆλŠ” 경우인 것 κ°™μŠ΅λ‹ˆλ‹€. λ‚΄κ°€ 틀릴 μˆ˜λ„ μžˆμ§€λ§Œ cd path/to/site-packages && python3 -m pip uninstall spam 와 같은 ν˜„μž¬ λ””λ ‰ν† λ¦¬μ—μ„œ μ œκ±°ν•˜λŠ” 것은 ν•œκ³„ μ‚¬μš© μ‚¬λ‘€μ²˜λŸΌ 보이고 λˆ„κ΅°κ°€κ°€ κ·Έλ ‡κ²Œ ν•  만큼 μΆ©λΆ„νžˆ μ•Œκ³  μžˆλ‹€λ©΄ λ‚˜ 같은 μž…μœΌλ‘œ μˆ¨μ‰¬λŠ” μ‚¬λžŒλ“€μ„ μœ„ν•΄ μ‘°μ •λœ λ©”μ‹œμ§€λŠ” 그듀을 ν˜Όλ™ν•˜μ§€ μ•Šμ„ κ²ƒμž…λ‹ˆλ‹€.

λŒ€λΆ€λΆ„μ˜ μ‚¬μš©μžλŠ” λ‚΄κ°€ 그랬던 κ²ƒμ²˜λŸΌ - uninstall κ°€ λ§ˆλ²•μ²˜λŸΌ μ‹œμŠ€ν…œ λΌμ΄λΈŒλŸ¬λ¦¬μ—μ„œ νŒ¨ν‚€μ§€λ₯Ό 찾을 것이라고 κ°€μ •ν•˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

μ•„λ§ˆλ„ '컴퓨터'κ°€ 'μ‹œμŠ€ν…œ 라이브러리'보닀 λ‚˜μ„κΉŒμš”?

κ·€ν•˜μ˜ μ œμ•ˆμ— λŒ€ν•œ 반볡 @reynoldsnlp :

'슀팸'(ν˜„μž¬ 디렉토리에 있음)을 μ œκ±°ν•  수 μ—†μŠ΅λ‹ˆλ‹€. μ œκ±°ν•  νŒŒμΌμ„ 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.\nμ»΄ν“¨ν„°μ—μ„œ '슀팸'을 μ œκ±°ν•˜λ €λ©΄ '슀팸' 디렉터리가 μ—†λŠ” λ””λ ‰ν„°λ¦¬μ—μ„œ λ™μΌν•œ λͺ…령을 μ‹€ν–‰ν•˜μ‹­μ‹œμ˜€.

더 λͺ…ν™•ν•©λ‹ˆκΉŒ?

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