macos pip install 一直报错的解决方法
来源:互联网 发布:汤神君没有朋友知乎 编辑:程序博客网 时间:2024/06/07 14:23
执行
$pip install xxx(软件名)
之后报一堆错,比如:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-5CyiYk/python-gflags/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_Mg7Um-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-5CyiYk/python-gflags/
或者:
raise ProtocolError('Connection broken: %r' % e, e)ProtocolError: ("Connection broken: error(60, 'Operation timed out')", error(60, 'Operation timed out'))
解决方法:在pip命令后面加上–user -U:
➜sudo pip install tensorflow --user -U
参考:
http://xiaorui.cc/2016/03/27/%E8%A7%A3%E5%86%B3mac-osx%E4%B8%8Bpip%E5%AE%89%E8%A3%85ipython%E6%9D%83%E9%99%90%E7%9A%84%E9%97%AE%E9%A2%98/
阅读全文
0 0
- macos pip install 一直报错的解决方法
- pip install PIL 报错
- pip install PIL 报错
- python pip install报错
- pip install 报错问题解决
- pip install的时候报错timed out
- pip install scrapy报错:error: Unable to find vcvarsall.bat解决方法
- python2.7.6 pip install 报错
- windows ,pip install h5py 报错
- pip install 报错 SyntaxError:invalid syntax
- pip 版本问题导致 pip install Django 失败的解决方法
- pip的安装--macOS
- wordpress查看文章一直报错404的解决方法
- pip安装报错[SSL:CERTIFICATE_VERIFY_FAILED]解决方法
- pip install 出现报asciii码错误的问题
- pip install 出现报asciii码错误的问题
- pip install 出现报asciii码错误的问题
- pip install 出现报UnicodeEncodeError错误的问题
- enum枚举类型解析
- LAMP与LNMP架构的区别及其具体的选择说明
- ABP从入门到精通(6):快速重命名解决方案
- CODEVS--1206 保留两位小数
- 【cf492】E. Vanya and Field(拓展欧几里得)
- macos pip install 一直报错的解决方法
- 3. Longest Substring Without Repeating Characters
- hdu 1711 kuangbin 字符串 A KMP入门
- 普通类中不创建对象,直接写object的方法
- python3.5《机器学习实战》学习笔记(二):k近邻算法实战
- 494. Target Sum
- 【matlab】利用matlab在图形中绘制箭头、标注、圈圈
- Java设计模式之外观模式
- shellapi.h(55) : error C2065: 'HDROP' : undeclared identifier