美文网首页
mac下安装pip

mac下安装pip

作者: 一剑卿心 | 来源:发表于2019-07-31 13:28 被阅读0次
  1. mac下使用sudo easy_install pip会报错。
  2. 所以直接下载pip压缩包并解压。下载压缩包:pip-19.2.1.tar.gz
  3. 打开终端,从终端进入pip解压后的目录。
  4. 然后执行sudo python setup.py install安装pip.
    pip官网

注意:

  • python setup.py install 前要加sudo,不然会报权限错误。


    image.png

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-8868.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

相关文章

  • tensorflow入门-数字识别

    1安装tensflow mac下安装tensflow的方法 1安装了pip 2sudo pip ins...

  • flask环境搭建

    需要事先安装python 2.7和pip Mac环境下sudo pip install flask win下pip...

  • Mac下安装pip(install pip on Mac)

    出现以下内容即为安装成功

  • 【接口/性能】python01-requests&uni

    mac下实践 1. 安装requests库(python的第三方库) mac下安装pip: brew instal...

  • Mac下安装pip

    pip是常用的python包管理工具,类似于java的maven,node的npm。 在home-brew中,pi...

  • mac 下安装pip

    pip是常用的Python包管理工具,类似于Java的maven。用python的同学,都离不开pip。 在新ma...

  • Mac 下安装pip

    pip是python的包管理工具,准备写爬虫所以安装下。 Step1.brew install pip(不能下载)...

  • Mac 下安装Pip

    1、打开终端执行:sudo easy_install pip 然后这样了: 解决:输入:curlhttps://b...

  • mac下安装pip

    mac下使用sudo easy_install pip会报错。 所以直接下载pip压缩包并解压。下载压缩包:pip...

  • ppt小记录

    安装MySQLdb模块 SSH免认证 Mac终端命令提示插件 Mac下pip库安装出错 列出所有python安装模...

网友评论

      本文标题:mac下安装pip

      本文链接:https://www.haomeiwen.com/subject/gjwzrctx.html