macOS ํน์ Linux์์ pip ์ค์น๊ฐ ์ ๋๋ก ์๋๋ ๊ฒฝ์ฐ๋ ์์ด pip์ ๊ฒฝ๋ก๋ฅผ ์๋ชป ์ค์นํด์ ๋ค๋ฅธ ๊ฒฝ๋ก๋ก ์ค์น๋๋ ์ค๋ฅ์ผ ๊ฒฝ์ฐ๊ฐ ์๋ค.
$ which pip
output: /usr/local/bin/pip
$ cd /usr/local/bin
$ sudo rm -r pip* # for each version to remove
์์ฒ๋ผ /usr/loca/bin์ pip๋ค์ ์ ๋ถ ์ญ์ ํด์ python์ bin์ ์๋ pip์ ๋ถ๋ฌ์ค๋๋ก ํ๊ฒฝ๋ณ์ ์ค์ ์ ํด์ผ ํ๋ค.
์๋์ ํ์ค์ ์์ ์ด ์ฌ์ฉํ๋ ์์ ํ๊ฒฝ๋ณ์ ์ค์ ํ์ผ ๋งจ๋ง์ง๋ง์ ์ ์ด์ค๋ค.
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.9/bin"
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/{์์ ์ ํ์ด์ฌ ๋ฒ์ }/bin"
bash์ผ ๊ฒฝ์ฐ๋ ~/.bash_profile์๋ค ์จ์ฃผ๋ฉด ๋๋ค.
zsh์ผ ๊ฒฝ์ฐ๋ ~/.zshrc์๋ค ์ ์ด์ค๋ค.
์ถ์ฒ:
https://stackoverflow.com/questions/21012597/how-to-uninstall-pip-on-osx
How to uninstall pip on OSX?
I ran the following commands: easy_install pip sudo pip install setuptools --no-use-wheel --upgrade How do I reverse the two commands to get my python back to its original state in OSX? (removing...
stackoverflow.com
PIP installation for Python3 problem: Consider adding this directory to PATH
I tried to install pip in python $ python get-pip.py through terminal but had this warning in Terminal. Python3.8 MacOS Catalina Please help :( . I have been trying to search for answers for ...
stackoverflow.com