νκ²½
μ€λͺ
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.
λ₯Ό λ³κ²½νμ¬ λμ ν¨ν€μ§ μ΄λ¦μ΄ μλ λ‘컬 ν΄λκ° μκΈ° λλ¬Έμ μ€ν¨ν μ μμμ λνλ΄λ λ° λ λμμ΄ λ©λλ€.
μ΄ κ²½μ° μ€λ₯λ₯Ό 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μ»΄ν¨ν°μμ 'μ€νΈ'μ μ κ±°νλ €λ©΄ 'μ€νΈ' λλ ν°λ¦¬κ° μλ λλ ν°λ¦¬μμ λμΌν λͺ λ Ήμ μ€ννμμμ€.
λ λͺ νν©λκΉ?
κ°μ₯ μ μ©ν λκΈ
@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
κ° λ§λ²μ²λΌ μμ€ν λΌμ΄λΈλ¬λ¦¬μμ ν¨ν€μ§λ₯Ό μ°Ύμ κ²μ΄λΌκ³ κ°μ νλ κ² κ°μ΅λλ€.