1

我很愚蠢,在尝试卸载 anaconda navigator 时,可能已经删除了 mac 的基本 python(和/或 python 2.7)作为 root 的一些依赖项。

现在每次我尝试在终端中执行安装或更新操作时 - 操作都会超时。

例如:终端中的“brew update”有以下错误:

fatal: unable to access 'https://github.com/Homebrew/brew/': Failed to connect to github.com port 443: Operation timed out
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Failed to connect to github.com port 443: Operation timed out
Error: Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!

(注意:我检查过,并且 /usr/local/Homebrew/homebrew-core 存在。)

另一个示例:'pip3 install PyQt5' 返回以下内容:

Collecting PyQt5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x1086a8320>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pyqt5/ 

我也尝试在终端安装python 3.7,操作超时。我能够通过 pkg 下载安装 python 3.7,但终端问题仍然存在。

我有以下问题(1)如何确定终端超时问题是否是由于我删除了一些基本的 mac python 依赖项引起的,(2)答案是肯定的还是否定的,我该如何解决这个问题?

只是让你知道...

which python

返回以下...

/usr/bin/python

这是我完整的 .bash_profile ...

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi
4

0 回答 0