码迷,mamicode.com
首页 > 其他好文 > 详细

使用pip安装模块时提示: No module named pip

时间:2018-08-21 15:21:44      阅读:3152      评论:0      收藏:0      [点我收藏+]

标签:using   module   使用   col   cte   pac   ref   name   pythonh   

今天使用pip安装模块提示错误信息:

No module named pip

 

windows 解决方法:

>>> python -m ensurepip

Ignoring indexes: https://pypi.python.org/simple
Requirement already satisfied (use --upgrade to upgrade): setuptools in f:\dropbox\python\django\gistandard-master\venv\lib\site-packages\setuptools-28.8.0-py3.5.egg
Collecting pip
Installing collected packages: pip
Successfully installed pip-8.1.1

 

升级pip版本:

>>> pip install --upgrade pip

Collecting pip
  Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-18.0

 

linux解决方法:

python -m ensurepip
sudo easy_install pip
 

使用pip安装模块时提示: No module named pip

使用pip安装模块时提示: No module named pip

标签:using   module   使用   col   cte   pac   ref   name   pythonh   

原文地址:https://www.cnblogs.com/chenxinming-top/p/9510976.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!