w

curl https://bootstrap.pypa.io/get-pip.py > curl_get-pip.py
python curl_get-pip.py

https://pip.pypa.io/en/stable/installing/

curl https://bootstrap.pypa.io/get-pip.py > curl_get-pip.py

  1. wuser@ubuntu:~$ pip install -U pip setuptools
  2. The program 'pip' is currently not installed. You can install it by typing:
  3. sudo apt install python-pip
  4. wuser@ubuntu:~$ python get-pip.py
  5. python: can't open file 'get-pip.py': [Errno 2] No such file or directory
  6. wuser@ubuntu:~$ python https://bootstrap.pypa.io/get-pip.py
  7. python: can't open file 'https://bootstrap.pypa.io/get-pip.py': [Errno 2] No such file or directory
  8. wuser@ubuntu:~$ pwd
  9. /home/wuser
  10. wuser@ubuntu:~$ ll
  11. total
  12. drwxr-xr-x wuser wuser May : ./
  13. drwxr-xr-x root root May : ../
  14. -rw-r--r-- wuser wuser May : .bash_logout
  15. -rw-r--r-- wuser wuser May : .bashrc
  16. drwx------ wuser wuser May : .cache/
  17. -rw-rw-r-- wuser wuser May : .dbshell
  18. -rw------- wuser wuser May : .mongorc.js
  19. -rw-r--r-- wuser wuser May : .profile
  20. -rw-r--r-- wuser wuser May : .sudo_as_admin_successful
  21. wuser@ubuntu:~$ curl https://bootstrap.pypa.io/get-pip.py > curl_get-pip.py
  22. % Total % Received % Xferd Average Speed Time Time Time Current
  23. Dload Upload Total Spent Left Speed
  24. 1558k 1558k 196k :: :: --:--:-- 331k
  25. wuser@ubuntu:~$ ls
  26. curl_get-pip.py
  27. wuser@ubuntu:~$ python curl_get-pip.py
  28. Collecting pip
  29. Downloading pip-9.0.-py2.py3-none-any.whl (.3MB)
  30. % |████████████████████████████████| .3MB 18kB/s
  31. Collecting setuptools
  32. Downloading setuptools-35.0.-py2.py3-none-any.whl (390kB)
  33. % |████████████████████████████████| 399kB 59kB/s
  34. Collecting wheel
  35. Downloading wheel-0.29.-py2.py3-none-any.whl (66kB)
  36. % |████████████████████████████████| 71kB 22kB/s
  37. Collecting appdirs>=1.4. (from setuptools)
  38. Downloading appdirs-1.4.-py2.py3-none-any.whl
  39. Collecting packaging>=16.8 (from setuptools)
  40. Downloading packaging-16.8-py2.py3-none-any.whl
  41. Collecting six>=1.6. (from setuptools)
  42. Downloading six-1.10.-py2.py3-none-any.whl
  43. Collecting pyparsing (from packaging>=16.8->setuptools)
  44. Downloading pyparsing-2.2.-py2.py3-none-any.whl (56kB)
  45. % |████████████████████████████████| 61kB 72kB/s
  46. Installing collected packages: pip, appdirs, pyparsing, six, packaging, setuptools, wheel
  47. Exception:
  48. Traceback (most recent call last):
  49. File "/tmp/tmpO7xHXx/pip.zip/pip/basecommand.py", line , in main
  50. status = self.run(options, args)
  51. File "/tmp/tmpO7xHXx/pip.zip/pip/commands/install.py", line , in run
  52. prefix=options.prefix_path,
  53. File "/tmp/tmpO7xHXx/pip.zip/pip/req/req_set.py", line , in install
  54. **kwargs
  55. File "/tmp/tmpO7xHXx/pip.zip/pip/req/req_install.py", line , in install
  56. self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  57. File "/tmp/tmpO7xHXx/pip.zip/pip/req/req_install.py", line , in move_wheel_files
  58. isolated=self.isolated,
  59. File "/tmp/tmpO7xHXx/pip.zip/pip/wheel.py", line , in move_wheel_files
  60. clobber(source, lib_dir, True)
  61. File "/tmp/tmpO7xHXx/pip.zip/pip/wheel.py", line , in clobber
  62. ensure_dir(destdir)
  63. File "/tmp/tmpO7xHXx/pip.zip/pip/utils/__init__.py", line , in ensure_dir
  64. os.makedirs(path)
  65. File "/usr/lib/python2.7/os.py", line , in makedirs
  66. mkdir(name, mode)
  67. OSError: [Errno ] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip'
  68. wuser@ubuntu:~$ sudo python curl_get-pip.py
  69. The directory '/home/wuser/.cache/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.
  70. The directory '/home/wuser/.cache/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.
  71. Collecting pip
  72. Downloading pip-9.0.-py2.py3-none-any.whl (.3MB)
  73. % |████████████████████████████████| .3MB 18kB/s
  74. Collecting setuptools
  75. Downloading setuptools-35.0.-py2.py3-none-any.whl (390kB)
  76. % |████████████████████████████████| 399kB 17kB/s
  77. Collecting wheel
  78. Downloading wheel-0.29.-py2.py3-none-any.whl (66kB)
  79. % |████████████████████████████████| 71kB 10kB/s
  80. Collecting appdirs>=1.4. (from setuptools)
  81. Downloading appdirs-1.4.-py2.py3-none-any.whl
  82. Collecting packaging>=16.8 (from setuptools)
  83. Downloading packaging-16.8-py2.py3-none-any.whl
  84. Collecting six>=1.6. (from setuptools)
  85. Downloading six-1.10.-py2.py3-none-any.whl
  86. Collecting pyparsing (from packaging>=16.8->setuptools)
  87. Downloading pyparsing-2.2.-py2.py3-none-any.whl (56kB)
  88. % |████████████████████████████████| 61kB 17kB/s
  89. Installing collected packages: pip, appdirs, pyparsing, six, packaging, setuptools, wheel
  90. Successfully installed appdirs-1.4. packaging-16.8 pip-9.0. pyparsing-2.2. setuptools-35.0. six-1.10. wheel-0.29.
  91. wuser@ubuntu:~$

python curl_get-pip.py Installing with get-pip.py的更多相关文章

  1. [python] Ubuntu 环境下安装 python3.5 + pip

    一般情况下先添加PPA,但是我添加PPA会报错: sudo add-apt-repository ppa:fkrull/deadsnakes ubuntu add-apt-repository: co ...

  2. Python之No module named setuptools 安装pip

    早上运行程序的时候发现没有引入相应的module,然后使用pip去安装的时候发现自己没有在安装pip,于是在自己的软件群里边找见了pip安装包,在pip的解压目录下运行python setup.py ...

  3. 【转】python多版本并存,python3安装pip

    python3 与 pip3 安装与使用   1. yum -y install openssl* (pip依赖ssl环境) 2.编译安装python3 下载地址:https://www.python ...

  4. Python的包管理工具easy_install, setuptools, pip,distribute介绍

    1.相互之间的关联 easy_install, setuptools, pip,distribute,这几个工具的联系,如下图: 可以看到distribute是setuptools的取代,pip是ea ...

  5. 解决安装虚拟环境出现的问题(OSError: Command /home/python/.virtua...ngo3_web/bin/python3 - setuptools pkg_resources pip wheel failed with error code 2)

    python3的报错解决: OSError: Command /home/python/.virtua...ngo3_web/bin/python3 - setuptools pkg_resource ...

  6. py安装以及配置pip环境变量

    安装python,安装包链接:https://pan.baidu.com/s/1u4tA-FJMxtrtJTap-zFh3g 密码:gh1c 默然安装到了C盘 安装pycharm:安装包链接:链接:h ...

  7. Python项目生成requirements.txt文件及pip升级问题解决及流程

    缘由:新项目使用Python, PC上的python包不全,需要通过requirements.txt文件指定安装所需包 pip安装遇到一些坑 一.直接使用pip包管理工具生成requirements. ...

  8. pip Read timed out 和 pip 源

    解决方法,设置超时时间 pip --default-timeout=100 install -U Pillow 安装时指定源(--index-url) #例如安装scipy时使用豆瓣的源 pip in ...

  9. 【转】python:让源码更安全之将py编译成so

    python:让源码更安全之将py编译成so 应用场景 Python是一种面向对象的解释型计算机程序设计语言,具有丰富和强大的库,使用其开发产品快速高效. python的解释特性是将py编译为独有的二 ...

随机推荐

  1. 高级BASH

    Bash介绍与入门 1,简介 Bash(GNU Bourne-Again Shell)是一个为GNU计划编写的Unix shell,它是许多Linux平台默认使用的shell shell是一个命令解释 ...

  2. git学习指南

    近来学习Git,苦寻资料下发现廖雪峰老师的教程很好,在此推荐传送门 附每节总结,方便查阅 创建版本库 初始化一个Git仓库,使用git init命令. 添加文件到Git仓库,分两步: 使用命令git ...

  3. Scrapy 教程(四)-命令

    scrapy 没有界面,需要命令行来操作. 非常简单,总共也就十四五个命令,分为全局命令和项目命令. 全局命令 在哪都能用 常用命令 scrapy startproject name 创建项目/工程 ...

  4. 剑指offer-平衡二叉树-python

    题目描述 输入一棵二叉树,判断该二叉树是否是平衡二叉树. 思路: 平衡二叉树 (AVL)平衡二叉树是一种二叉排序树,其中每个结点的左子树和右子树的高度差至多等于1.它是一种高度平衡的二叉排序树.意思是 ...

  5. 在django中使用循环与条件语言

    {% if not Article_type_id %} <li class="active"><a href="/">全部</a ...

  6. Windows 环境下安装redis 及其PHP Redis扩展

    1.安装Redis (1)这里选择在github官网上下载Redis,地址:Redis下载地址 下载压缩包(如下图),并解压到本地目录,我放在D:\redis (2)验证Redis安装是否成功打开命令 ...

  7. python数据结构:pandas(3)

    一.pandas数据操作: 1.处理缺失数据 (1)判断是否存在缺失值 ser_obj.isnull(),df_obj.isnull() (2)dropna:丢弃缺失数据 (3)fillna:填充缺失 ...

  8. Vue准备

    Vue 模板 <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UT ...

  9. 关于javaweb 项目 ssm框架 启动tomcat服务器同时启动一个socket服务

    1.创建监听类 import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax. ...

  10. 百度网盘SVIP不限速Mac破解版(亲测可用)

    百度网盘SVIP不限速Mac破解版(亲测可用),按照教程一步一步来就可以了,链接如下: https://mac.orsoon.com/Mac/166358.html?id=ODY0MDA2Jl8mMT ...