Event
me@local:~/repos/aaa$ pipenv install
-bash: /usr/local/bin/pipenv: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
When I put something in brew, python became 3.8, 3.7.7 disappeared from / usr / local / bin
, and t again.
/usr/local/bin/python*
me@local:~/repos/aaa$ ll /usr/local/bin/python*
lrwxr-xr-x 1 me admin 39B Apr 30 17:46 /usr/local/bin/python-build@ -> ../Cellar/pyenv/1.2.18/bin/python-build
lrwxr-xr-x 1 me admin 40B Jul 13 12:09 /usr/local/bin/python3@ -> ../Cellar/[email protected]/3.8.3_2/bin/python3
lrwxr-xr-x 1 me admin 47B Jul 13 12:09 /usr/local/bin/python3-config@ -> ../Cellar/[email protected]/3.8.3_2/bin/python3-config
lrwxr-xr-x 1 me admin 42B Jul 13 12:09 /usr/local/bin/python3.8@ -> ../Cellar/[email protected]/3.8.3_2/bin/python3.8
lrwxr-xr-x 1 me admin 49B Jul 13 12:09 /usr/local/bin/python3.8-config@ -> ../Cellar/[email protected]/3.8.3_2/bin/python3.8-config
Somehow fixed
pyenv install 3.7.7
pyenv global 3.7.7
brew uninstall pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip uninstall pipenv virtualenv
pip install pipenv
I don't really understand it, so it seems like it's fixed. python difficult
Does the pip you put in with brew not look for python properly, or do you remember the location of what was before?
How can I change the python path used by pip / pipenv / virtualenv?
Recommended Posts