python2.7无法使用pip的解决方法(安装easy_install)
2018-04-03 10:21
1281 查看
1、 在Python IDLE下,我们输入以下代码
from urllib import urlopen【回车】 data = urlopen('http://peak.telecommunity.com/dist/ez_setup.py')【回车】 open('ez_setup.py','wb').write(data.read())【回车】 exit【回车】
然后会出现:
Use exit() or Ctrl-Z plus Return to exit2.
2、在计算的cmd程序下,切换到自己的安装目录python环境中,执行python ez_setup.py
3、如此,easy_install安装成功。easy_install在目录C:\Python27\Scripts 下面。
4、在cmd下,切换到目录C:\Python27\Scripts,运行 easy_inatall pip命令。
5、将C:\Python27\Scripts 配置到环境变量;
6、pip安装成功后,在cmd下执行pip,可现实安装成功结果。
7、然后就可以用pip安装各种插件,如pip install requests.
以上这篇python2.7无法使用pip的解决方法(安装easy_install)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
相关文章推荐
- python2.7无法使用pip(安装easy_install)
- 无法使用pip命令安装python第三方库的原因及解决方法
- 使用sudo pip install 安装python包出错的解决方法
- Python使用easy-install安装时报UnicodeDecodeError的解决方法
- pip和easy_install的使用对比,python库文件安装方法
- 《Python网络编程》Part3 Win7系统下使用easy_install和pip安装python的包
- Python3.6.X Windows下安装easy_install,pip3的方法
- python 使用pip install 手动安装本地包的方法
- (未解决)WIN8下使用POWERSHELL安装python easy_install无法成功
- Python 安装模块时,使用pip install xxx安装时,很慢的解决方法
- centos6.7 安装python2.7、pip2.7、easy_install-2.7的方法
- Python中easy_install 和 pip 的安装及使用
- easy_install和pip安装模块,提示error: Unable to find vcvarsall.bat的解决方法
- Centos 7 安装 Python3.6后yum无法使用的解决方法
- centos7.2+python2.7 gdal安装教程(校园网开启防火墙,无法使用yum,pip等工具)
- python中使用pip安装报错:Fatal error in launcher...解决方法
- centos安装python2.7,easy_install,pip
- centos安装python2.7并安装easy_install,pip,ipython
- 记录一下python easy_install和pip安装地址和方法
- ubuntu系统下,下载安装Python程序的方法汇总(wget;apt-get;easy_install;pip)