我很愚蠢,在尝试卸载anaconda导航器时,可能已经删除了Mac的基本python(和/或python 2.7)作为根的某些依赖项。
现在每当我每次尝试在终端上执行安装或更新操作时-操作都会超时。
例如:终端中的“酿造更新”具有以下错误:
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)如何确定终端超时问题是否是由于我删除了一些基本的python python依赖项引起的,(2)答案是是还是否,我该如何解决这个问题问题?
请注意...
which python
返回以下内容...
/usr/bin/python
这是我完整的.bash_profile ...
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi