报错curl: (6) Could not resolve host: raw.githubusercontent...的解决办法

我起初想要在macOS系统安装pip包,首先在终端安装homebrew,敲了命令:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent...)" 之后触发的报错,报错内容:curl: (6) Could not resolve host: raw.githubusercontent... 下面介绍解决方法。

第一步 设置里搜索"DNS",点击"DNS域"或"DNS服务器"

第二步 点击"+"号,输入"8.8.8.8",点击右下角"好"按钮

最后重新运行命令,会恢复正常(至少这个报错不会再出现)。

相关推荐
Jc.MJ2 天前
安装Pytorch GPU+CPU版本【通过本地安装解决无法使用pip指令下载问题】
人工智能·pytorch·pip
想名字好难啊竟然不止我一个3 天前
清除 Pip 缓存, 释放磁盘空间
python·缓存·pip
懒惰蜗牛6 天前
Day10:Python实现Excel自动汇总
python·numpy·pandas·pip·1024程序员节·python读写excel
蓝纹绿茶7 天前
bash:**:pip:***python: 错误的解释器: 没有那个文件或目录
开发语言·python·pip
Nie_Xun11 天前
conda常用命令&pip、venv
conda·pip
万粉变现经纪人11 天前
如何解决 pip install -r requirements.txt 子目录可编辑安装缺少 pyproject.toml 问题
开发语言·python·scrapy·beautifulsoup·scikit-learn·matplotlib·pip
万粉变现经纪人11 天前
如何解决 pip install -r requirements.txt 私有索引未设为 trusted-host 导致拒绝 问题
开发语言·python·scrapy·flask·beautifulsoup·pandas·pip
万粉变现经纪人12 天前
如何解决 pip install -r requirements.txt 私有仓库认证失败 401 Unauthorized 问题
开发语言·python·scrapy·flask·beautifulsoup·pandas·pip
kobe_OKOK_13 天前
windows 下载 pip包,debian离线安装
windows·debian·pip
逍遥创江湖13 天前
包管理 pip ,conda;pycharm中使用conda 创建的虚拟环境
pycharm·conda·pip