gpt4 book ai didi

python - brew install python3,但无法链接到python3

转载 作者:太空狗 更新时间:2023-10-30 01:04:51 26 4
gpt4 key购买 nike

所以我正在尝试通过 brew 安装 python3

==> Downloading https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
Already downloaded: /Users/leongaban/Library/Caches/Homebrew/python3-3.6.4.tar.xz
==> ./configure --prefix=/usr/local/Cellar/python3/3.6.4_2 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3.6.4_2/shar
==> make
==> make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.6.4_2
==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.6.4_2/share/python3
==> Downloading https://files.pythonhosted.org/packages/a4/c8/9a7a47f683d54d83f648d37c3e180317f80dc126a304c45dc6663246233a/se
Already downloaded: /Users/leongaban/Library/Caches/Homebrew/python3--setuptools-36.5.0.zip
==> Downloading https://files.pythonhosted.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pi
Already downloaded: /Users/leongaban/Library/Caches/Homebrew/python3--pip-9.0.1.tar.gz
==> Downloading https://files.pythonhosted.org/packages/fa/b4/f9886517624a4dcb81a1d766f68034344b7565db69f13d52697222daeb72/wh
Already downloaded: /Users/leongaban/Library/Caches/Homebrew/python3--wheel-0.30.0.tar.gz

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
➜ ~ python -V
Python 2.7.10
➜ ~ brew link python3
Linking /usr/local/Cellar/python3/3.6.4_2... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

我按照步骤找到了这个答案,但仍然遇到无法链接 python3 的问题,我的 python -V 仍然显示 2.7

brew install python3 didn't install pip3

最佳答案

sudo chown -R $(whoami) /usr/local

这将允许创建符号链接(symbolic link),从而解决链接问题。

关于python - brew install python3,但无法链接到python3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48908775/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com