zoukankan      html  css  js  c++  java
  • pip安装软件

    环境:macOS Sierra 10.12.6

    工具:pycharm 2017.3.2

    sudo easy_install pip

    出现错误,于是用另一种方法安装

    还是会出现问题

    Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/0t/t7t2dpdx1xb825__kxqdl26h0000gn/T/pip-build-JwqJfi/pyqrcode/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
    ', '
    ');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/0t/t7t2dpdx1xb825__kxqdl26h0000gn/T/pip-LvXj4Y-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/0t/t7t2dpdx1xb825__kxqdl26h0000gn/T/pip-build-JwqJfi/pyqrcode/

    参考https://stackoverflow.com/questions/31498495/error-when-installing-using-pip

    输入命令

    sudo pip install -U setuptools

    依旧报错

    The directory '/Users/imac/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    The directory '/Users/imac/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

    最后用以下命令行解决

    sudo -H pip install itchat

    itchart替换成你要安装的软件名称就可以了。

  • 相关阅读:
    一脚踩进java之基础篇07——数组
    一脚踩进java之基础篇06——流程控制语句(if...else,while,for,switch...case)
    一脚踩进java之基础篇05——运算符
    一脚踩进java之基础篇04——变量
    [转]进程间通信
    [转]netstat 命令详解
    僵尸进程
    如何进行表的复制
    解决system调用返回ECHILD的问题
    Oracle保留2位小数
  • 原文地址:https://www.cnblogs.com/qianyindichang/p/8311651.html
Copyright © 2011-2022 走看看