I believe the python environment is my Mac is a little bit mess up... Every time I use brew, it will first do this:
==> Migrating python3 to python
==> Unlinking python3
==> Unlinking python
Error: Error occurred while migrating.
Permission denied @ unlink_internal - /usr/local/share/python
Backing up...
Error: Permission denied @ unlink_internal - /usr/local/share/python
in my mac, I have:
- python2, which is referred by 'python', and it's installed by anaconda bundle.
- python3, which is referred by 'python3', and it's installed by brew.
Actually I create a symbolic link in /usr/local/bin for python3, which is the best way I can figure out to distinguish python/python3 in my machine......but recently it's just messed up...
I tried find / -name "python3"
, and here is the result:
/Users/liuziqi/anaconda/lib/python2.7/site-packages/astroid/tests/testdata/python3
/Users/liuziqi/google-cloud-sdk/.install/.backup/platform/gsutil/third_party/crcmod/python3
/Users/liuziqi/google-cloud-sdk/.install/.backup/platform/gsutil/third_party/httplib2/python3
/Users/liuziqi/google-cloud-sdk/platform/gsutil/third_party/crcmod/python3
/Users/liuziqi/google-cloud-sdk/platform/gsutil/third_party/httplib2/python3
/usr/local/Cellar/python3
/usr/local/Cellar/python3/3.6.1/bin/python3
/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/bin/python3
/usr/local/Cellar/python3/3.6.4_2/bin/python3
/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/bin/python3
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases/python3
/usr/local/lib/python3.6/site-packages/astroid/tests/testdata/python3
/usr/local/opt/python3
the python3 I previously used is /usr/local/Cellar/python3/3.6.1/bin/python3
, and I created a link to /usr/local/bin