macos pip install 一直报错的解决方法
2017-09-12 21:58
375 查看
执行
之后报一堆错,比如:
或者:
解决方法:在pip命令后面加上–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/
$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/
相关文章推荐
- Anaconda使用pip install依赖包时提示超时的解决方法
- pip install geohash后无法import的解决方法
- Linux下pip install 出现ascii编码问题的解决方法
- Macos解决安装pip,python,scrapy,项目安装的若干问题方法
- pip 版本问题导致 pip install Django 失败的解决方法
- easy_install和pip安装模块,提示error: Unable to find vcvarsall.bat的解决方法
- python2.7无法使用pip的解决方法(安装easy_install)
- python中尝试pip install PIL,出现错误的解决方法
- pip命令提示unknow or unsupported command install解决方法
- pip install geohash后无法import的解决方法
- easy_install 或者pip 安装时出现unable to find vcvarsall.bat解决方法
- 【Python】使用pip install时出现UnicodeDecodeError错误解决方法
- python pip install 总是出错的解决方法
- 【Python】使用pip install时出现UnicodeDecodeError错误解决方法
- 使用sudo pip install 安装python包出错的解决方法
- 基于pip install django失败时的解决方法
- zabbix 监控界面状态一直显示为loading的解决方法
- Python: 安装库的简单方法——pip install ...
- python pip下载速度慢的解决方法
- INSTALL_FAILED_INSUFFICIENT_STORAGE 的解决方法