• 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替换成你要安装的软件名称就可以了。

  • 相关阅读:
    webpack-dev-server坑
    项目问题整理(it)
    webupload在IE9-出现的问题解决
    layer close 关闭层IE9-浏览器崩溃问题解决
    Navicat Premium试用期破解方法(转)
    Navicat试用期破解方法(转)
    关于树莓派Pi2通过UART连接攀藤G5传感器的python
    关于Unicode转为str的方法
    python利用wxpy监控微信公众号
    Android app与PC端交互
  • 原文地址:https://www.cnblogs.com/qianyindichang/p/8311651.html
Copyright © 2020-2023  润新知