报错代码:

WARNING: The directory '/Users/mac/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Looking in indexes: http://pypi.douban.com/simple/
Collecting virtualenvwrapperDownloading http://pypi.doubanio.com/packages/c1/6b/2f05d73b2d2f2410b48b90d3783a0034c26afa534a4a95ad5f1178d61191/virtualenvwrapper-4.8.4.tar.gz (334 kB)|████████████████████████████████| 334 kB 4.7 MB/s ERROR: Command errored out with exit status 1:command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-7hgri4zv/virtualenvwrapper/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-7hgri4zv/virtualenvwrapper/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/tmp/pip-install-7hgri4zv/virtualenvwrapper/pip-egg-infocwd: /private/tmp/pip-install-7hgri4zv/virtualenvwrapper/Complete output (34 lines):WARNING: The directory '/Users/mac/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.ERROR: Could not find a version that satisfies the requirement pbr (from versions: none)ERROR: No matching distribution found for pbrTraceback (most recent call last):File "/usr/local/lib/python3.7/site-packages/setuptools/installer.py", line 128, in fetch_build_eggsubprocess.check_call(cmd)File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 363, in check_callraise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['/usr/local/opt/python/bin/python3.7', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpiow3p7p3', '--quiet', 'pbr']' returned non-zero exit status 1.During handling of the above exception, another exception occurred:Traceback (most recent call last):File "<string>", line 1, in <module>File "/private/tmp/pip-install-7hgri4zv/virtualenvwrapper/setup.py", line 7, in <module>pbr=True,File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup_install_setup_requires(attrs)File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 139, in _install_setup_requiresdist.fetch_build_eggs(dist.setup_requires)File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 721, in fetch_build_eggsreplace_conflicting=True,File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 783, in resolvereplace_conflicting=replace_conflictingFile "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1066, in best_matchreturn self.obtain(req, installer)File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1078, in obtainreturn installer(requirement)File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 777, in fetch_build_eggreturn fetch_build_egg(self, req)File "/usr/local/lib/python3.7/site-packages/setuptools/installer.py", line 130, in fetch_build_eggraise DistutilsError(str(e))distutils.errors.DistutilsError: Command '['/usr/local/opt/python/bin/python3.7', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpiow3p7p3', '--quiet', 'pbr']' returned non-zero exit status 1.----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

解决办法:

升级pip到最新

1、下载 get-pip.py

curl https://bootstrap.pypa.io/get-pip.py > /tmp/get-pip.py

2、执行升级pip

sudo python /tmp/get-pip.py

原文链接:https://www.jianshu.com/p/832245fc7276

再次安装报错:

You are using pip version 8.1.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

版本不一致导致,执行下面的语句解决

sudo python -m pip install --upgrade pip

Mac下安装virtualenvwrapper提示ERROR: No matching distribution found for pbr相关推荐

  1. python或anaconda下安装opencv提示Error:No matching distribution found for opencv

    python或anaconda下安装opencv提示Error:No matching distribution found for opencv 错误提示: ERROR: Could not fin ...

  2. 安装LabelMe出现ERROR: No matching distribution found for labelme解决方式(关闭网络代理+使用清华源)

    1.安装指令 pip install labelme -i https://pypi.tuna.tsinghua.edu.cn/simple/ 2.安装细节 3.反思 经常使用pip安装包,总出现ER ...

  3. 关于MAC下安装报错Error: Cowardly refusing to `sudo brew install'

    mac下brew install 报错 Password: Error: Cowardly refusing to `sudo brew install' You can use brew with ...

  4. 在MAC下安装一些软件时提示来自身份不明开发者

    在MAC下安装一些软件时提示"来自身份不明开发者",其实这是MAC新系统启用了新的安全机制. 默认只信任 Mac App Store 下载的软件和拥有开发者 ID 签名的应用程序. ...

  5. 【Mac】Mac下安装MySQL优化工具 percona-toolkit 报错 Error: Failed to download resource openssl@1.1

    1.背景 mac 下安装percona-toolkit 报错 Error: Failed to download resource "openssl@1.1" Download f ...

  6. Mac下安装homebrew(解决error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL)

    Mac下安装homebrew 直接说方法 1.将brew的install文件下载本地 2.修改install文件的镜像源 3.开始安装 4.替换homebrew源 5.更新(确认为最新版本) 6.设置 ...

  7. 在MAC下安装一些软件时提示来自身份不明开发者解决方法

    在MAC下安装一些软件时提示"来自身份不明开发者"解决方法 在MAC下安装一些软件时提示"来自身份不明开发者",其实这是MAC新系统启用了新的安全机制.默认只信 ...

  8. brew install php55redis,Mac下安装LNMP环境

    Mac下搭建lamp开发环境很容易,有xampp和mamp现成的集成环境.但是集成环境对于经常需要自定义一些配置的开发者来说会非常麻烦,而且Mac本身自带apache和php,在brew的帮助下非常容 ...

  9. mac下安装nginx和php

    From: http://www.jb51.net/article/42715.htm mac下使用homebrew安装安装.配置nginx.mysql.php-fpm的方法. 一.前话: 1.1.环 ...

最新文章

  1. Silverlight中使用CompositionInitializer宿主MEF
  2. DOM笔记(五):JavaScript的常见事件和Ajax小结
  3. 2020年人工智能领域的最大创新
  4. Redis的启动和关闭(前台启动和后台启动)
  5. Oracle 创建主键自增表
  6. ASP.NET Core集成现有系统认证
  7. SAP License:SAP的采购批准策略
  8. SQL本地事务、asp.net事务、DTC
  9. CentOS7.2下python安装pip-8.0.2管理
  10. 超图 三维 GIS 技术白皮书
  11. JDBC驱动下载地址
  12. 汉字转换为拼音 第一篇
  13. 向数据库中存取图片(BITMAP)
  14. 欧拉函数的求法(三种)
  15. Linux:帮助命令——help、man、info的简单介绍
  16. Tableau仪表板制作
  17. 禁用系统【快应用】,停止【快应用】自动弹出
  18. Clk Gating的verilog写法及简析-基础小知识(六)
  19. 【RoCE】Flow Control
  20. 不懂优雅停机,搞挂了线上服务,咋办?

热门文章

  1. 人造肉公司大受追捧!美国公司Beyond Meat在IPO首日暴涨163%
  2. python抓取gb2312/gbk编码网页乱码问题
  3. 进程的三个状态的转换
  4. webbrowser 打开支付宝网页提示无权打开_在押人员生活缴费更便利:支付宝线上“智慧监所”...
  5. html svg画图
  6. java代码加载_java类中代码加载顺序
  7. 灰色关联度分析_数学建模|关联分析之术|灰度预测模型预备知识
  8. 我的内核学习笔记2:platform设备模型
  9. maven build时报错Failed to execute goal org.apache.maven.plugins......
  10. 【linux】linux 安装 redis