Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法通过自制安装Python3_Python_Python 3.x_Homebrew - Fatal编程技术网

无法通过自制安装Python3

无法通过自制安装Python3,python,python-3.x,homebrew,Python,Python 3.x,Homebrew,我想通过自制软件安装python 3。以下是我得到的错误: Error: You must `brew link xz gdbm' before python3 can be installed 现在,当我执行“brew链接xz gdbm”时,我得到以下信息: Linking /usr/local/Cellar/gdbm/1.11... Error: Could not symlink include/gdbm.h/usr/local/include is not writable. 我尝试

我想通过自制软件安装python 3。以下是我得到的错误:

Error: You must `brew link xz gdbm' before python3 can be installed
现在,当我执行“brew链接xz gdbm”时,我得到以下信息:

Linking /usr/local/Cellar/gdbm/1.11... Error: Could not symlink include/gdbm.h/usr/local/include is not writable.
我尝试了以下选项来修复此问题:

sudo chown -R $USER /usr/local/bin/include
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
   chown [-fhv] [-R [-H | -L | -P]] :group file ...
在此之后,我试图再次安装python3,但我得到了相同的错误。请帮忙

/usr/local/include不可写。

sudo chown-R$USER/usr/local/bin/include

您要选择的目录是/usr/local/include或/usr/local-property

/usr/local/include不可写。

sudo chown-R$USER/usr/local/bin/include

您要选择的目录是/usr/local/include或/usr/local-property

/usr/local/include不可写。

sudo chown-R$USER/usr/local/bin/include

您要选择的目录是/usr/local/include或/usr/local-property

/usr/local/include不可写。

sudo chown-R$USER/usr/local/bin/include


您要查看的目录是/usr/local/include或/usr/local property。

我也遇到了同样的问题。跑

brew doctor
(如果brew更新命令旧,可能还需要更新brew) 在清除警告后,python安装应顺利进行


请注意,在所有警告消失之前,您可以多次运行brew doctor

我也有同样的问题。跑

brew doctor
(如果brew更新命令旧,可能还需要更新brew) 在清除警告后,python安装应顺利进行


请注意,在所有警告消失之前,您可以多次运行brew doctor

我也有同样的问题。跑

brew doctor
(如果brew更新命令旧,可能还需要更新brew) 在清除警告后,python安装应顺利进行


请注意,在所有警告消失之前,您可以多次运行brew doctor

我也有同样的问题。跑

brew doctor
(如果brew更新命令旧,可能还需要更新brew) 在清除警告后,python安装应顺利进行

请注意,在所有警告消失之前,您可以多次运行brew doctor

运行

    brew doctor
然后你会看到这样的诊断:

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:

  makedepend
这意味着您可以通过运行以下代码进行修复:

 brew link makedepand
所以现在这是可行的

 brew install pyenv

然后你会看到这样的诊断:

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:

  makedepend
这意味着您可以通过运行以下代码进行修复:

 brew link makedepand
所以现在这是可行的

 brew install pyenv

然后你会看到这样的诊断:

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:

  makedepend
这意味着您可以通过运行以下代码进行修复:

 brew link makedepand
所以现在这是可行的

 brew install pyenv

然后你会看到这样的诊断:

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:

  makedepend
这意味着您可以通过运行以下代码进行修复:

 brew link makedepand
所以现在这是可行的

 brew install pyenv

为什么不以正常的方式安装Python 3。。。来自Python.org?
brew doctor
如果您将来遇到类似问题,可能会建议解决方案。Ian下面的答案是正确的。为什么不以正常的方式安装Python 3。。。来自Python.org?
brew doctor
如果您将来遇到类似问题,可能会建议解决方案。Ian下面的答案是正确的。为什么不以正常的方式安装Python 3。。。来自Python.org?
brew doctor
如果您将来遇到类似问题,可能会建议解决方案。Ian下面的答案是正确的。为什么不以正常的方式安装Python 3。。。来自Python.org?
brew doctor
如果您将来遇到类似问题,可能会建议解决方案。伊恩下面的回答是正确的。