Linux 下安装easy_install 安装pip 安装django
来源:互联网 发布:网络歌星人气排名 编辑:程序博客网 时间:2024/05/22 02:16
Centos6.5 下在线安装easy_install
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py python ez_setup.py --insecure
执行过程如下:
[root@localhost data]# wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py--2014-12-27 11:33:41-- https://bootstrap.pypa.io/ez_setup.pyResolving bootstrap.pypa.io... 103.245.222.175Connecting to bootstrap.pypa.io|103.245.222.175|:443... connected.WARNING: cannot verify bootstrap.pypa.io’s certificate, issued by “/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA”: Issued certificate not yet valid.HTTP request sent, awaiting response... 200 OKLength: 11432 (11K) [text/x-python]Saving to: “ez_setup.py”100%[====================================================================================================>] 11,432 --.-K/s in 0s 2014-12-27 11:33:41 (510 MB/s) - “ez_setup.py” saved [11432/11432]
[root@localhost data]# python ez_setup.py --insecureDownloading https://pypi.python.org/packages/source/s/setuptools/setuptools-15.2.zipExtracting in /tmp/tmpHg_lBZNow working in /tmp/tmpHg_lBZ/setuptools-15.2Installing Setuptoolsrunning installrunning bdist_eggrunning egg_infowriting requirements to setuptools.egg-info/requires.txtwriting setuptools.egg-info/PKG-INFOwriting top-level names to setuptools.egg-info/top_level.txtwriting dependency_links to setuptools.egg-info/dependency_links.txtwriting entry points to setuptools.egg-info/entry_points.txtreading manifest file 'setuptools.egg-info/SOURCES.txt'reading manifest template 'MANIFEST.in'writing manifest file 'setuptools.egg-info/SOURCES.txt'installing library code to build/bdist.linux-x86_64/eggrunning install_librunning build_pycreating build 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 <span style="white-space:pre"></span> byte-compiling build/bdist.linux-x86_64/egg/setuptools/utils.py to utils.pycbyte-compiling build/bdist.linux-x86_64/egg/setuptools/lib2to3_ex.py to lib2to3_ex.pycbyte-compiling build/bdist.linux-x86_64/egg/setuptools/py26compat.py to py26compat.pycbyte-compiling build/bdist.linux-x86_64/egg/setuptools/dist.py to dist.pycbyte-compiling build/bdist.linux-x86_64/egg/setuptools/py27compat.py to py27compat.pycbyte-compiling build/bdist.linux-x86_64/egg/setuptools/depends.py to depends.pycbyte-compiling build/bdist.linux-x86_64/egg/_markerlib/__init__.py to __init__.pycbyte-compiling build/bdist.linux-x86_64/egg/_markerlib/markers.py to markers.pycbyte-compiling build/bdist.linux-x86_64/egg/easy_install.py to easy_install.pyccreating build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFOcopying setuptools.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFOcreating distcreating 'dist/setuptools-15.2-py2.6.egg' and adding 'build/bdist.linux-x86_64/egg' to itremoving 'build/bdist.linux-x86_64/egg' (and everything under it)Processing setuptools-15.2-py2.6.eggCopying setuptools-15.2-py2.6.egg to /usr/lib/python2.6/site-packagesAdding setuptools 15.2 to easy-install.pth fileInstalling easy_install script to /usr/binInstalling easy_install-2.6 script to /usr/binInstalled /usr/lib/python2.6/site-packages/setuptools-15.2-py2.6.eggProcessing dependencies for setuptools==15.2Finished processing dependencies for setuptools==15.2<span style="white-space:pre"></span>
easy_install pip
[root@localhost data]# [root@localhost data]# [root@localhost data]# easy_install pipSearching for pipReading https://pypi.python.org/simple/pip/Best match: pip 6.1.1Downloading https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz#md5=6b19e0a934d982a5a4b798e957cb6d45Processing pip-6.1.1.tar.gzWriting /tmp/easy_install-MNHTTJ/pip-6.1.1/setup.cfgRunning pip-6.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-MNHTTJ/pip-6.1.1/egg-dist-tmp-cD4H8Gwarning: no previously-included files found matching '.coveragerc'warning: no previously-included files found matching '.mailmap'warning: no previously-included files found matching '.travis.yml'warning: no previously-included files found matching 'pip/_vendor/Makefile'warning: no previously-included files found matching 'tox.ini'warning: no previously-included files found matching 'dev-requirements.txt'no previously-included directories found matching '.travis'no previously-included directories found matching 'docs/_build'no previously-included directories found matching 'contrib'no previously-included directories found matching 'tasks'no previously-included directories found matching 'tests'creating /usr/lib/python2.6/site-packages/pip-6.1.1-py2.6.eggExtracting pip-6.1.1-py2.6.egg to /usr/lib/python2.6/site-packagesAdding pip 6.1.1 to easy-install.pth fileInstalling pip script to /usr/binInstalling pip2.6 script to /usr/binInstalling pip2 script to /usr/binInstalled /usr/lib/python2.6/site-packages/pip-6.1.1-py2.6.eggProcessing dependencies for pipFinished processing dependencies for pip
安装django
pip install django 安装最新稳定版的
pip install django==1.4.5
[root@localhost data]# pip install django==1.4.5Collecting django==1.4.5/usr/lib/python2.6/site-packages/pip-6.1.1-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Downloading Django-1.4.5.tar.gz (7.7MB) 100% |████████████████████████████████| 7.7MB 46kB/s Installing collected packages: django Running setup.py install for djangoSuccessfully installed django-1.4.5[root@localhost data]#
error: command 'gcc' failed with exit status 1
解决办法如下:
[root@localhost fuwo]# yum install gcc python-develLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.zju.edu.cnPackage gcc-4.4.7-11.el6.x86_64 already installed and latest versionResolving Dependencies--> Running transaction check---> Package python-devel.x86_64 0:2.6.6-52.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================== Package Arch Version Repository Size==============================================================================================================================================Installing: python-devel x86_64 2.6.6-52.el6 base 171 kTransaction Summary==============================================================================================================================================Install 1 Package(s)Total download size: 171 kInstalled size: 456 kIs this ok [y/N]: yDownloading Packages:python-devel-2.6.6-52.el6.x86_64.rpm | 171 kB 00:00 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : python-devel-2.6.6-52.el6.x86_64 1/1 Verifying : python-devel-2.6.6-52.el6.x86_64 1/1 Installed: python-devel.x86_64 0:2.6.6-52.el6 Complete![root@localhost fuwo]#
error: command 'gcc' failed with exit status 1
解决办法如下
[root@localhost fuwo]# yum install gcc-c++Loaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.zju.edu.cnResolving Dependencies--> Running transaction check---> Package gcc-c++.x86_64 0:4.4.7-11.el6 will be installed--> Processing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64--> Running transaction check---> Package libstdc++-devel.x86_64 0:4.4.7-11.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================== Package Arch Version Repository Size==============================================================================================================================================Installing: gcc-c++ x86_64 4.4.7-11.el6 base 4.7 MInstalling for dependencies: libstdc++-devel x86_64 4.4.7-11.el6 base 1.6 MTransaction Summary==============================================================================================================================================Install 2 Package(s)Total download size: 6.3 MInstalled size: 20 MIs this ok [y/N]: yDownloading Packages:(1/2): gcc-c++-4.4.7-11.el6.x86_64.rpm | 4.7 MB 00:01 (2/2): libstdc++-devel-4.4.7-11.el6.x86_64.rpm | 1.6 MB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------Total 3.1 MB/s | 6.3 MB 00:02 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : libstdc++-devel-4.4.7-11.el6.x86_64 1/2 Installing : gcc-c++-4.4.7-11.el6.x86_64 2/2 Verifying : libstdc++-devel-4.4.7-11.el6.x86_64 1/2 Verifying : gcc-c++-4.4.7-11.el6.x86_64 2/2 Installed: gcc-c++.x86_64 0:4.4.7-11.el6 Dependency Installed: libstdc++-devel.x86_64 0:4.4.7-11.el6 Complete![root@localhost fuwo]#
unable to execute swig: No such file or directory
error: command 'swig' failed with exit status 1
解决办法如下:
[root@localhost fuwo]# yum install wsigLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.zju.edu.cnNo package wsig available.Error: Nothing to do[root@localhost fuwo]# yum install swigLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.zju.edu.cnResolving Dependencies--> Running transaction check---> Package swig.x86_64 0:1.3.40-6.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================== Package Arch Version Repository Size==============================================================================================================================================Installing: swig x86_64 1.3.40-6.el6 base 1.1 MTransaction Summary==============================================================================================================================================Install 1 Package(s)Total download size: 1.1 MInstalled size: 4.1 MIs this ok [y/N]: yDownloading Packages:swig-1.3.40-6.el6.x86_64.rpm | 1.1 MB 00:00 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : swig-1.3.40-6.el6.x86_64 1/1 Verifying : swig-1.3.40-6.el6.x86_64 1/1 Installed: swig.x86_64 0:1.3.40-6.el6 Complete!
0 0
- Linux 下安装easy_install 安装pip 安装django
- Linux 下安装easy_install、pip 补充
- Linux 下安装easy_install、pip 补充
- Linux下安装easy_install
- 安装easy_install和pip
- Windows7下安装setuptools(easy_install)和pip
- Windows环境下安装pip和easy_install
- windows下python安装easy_install和pip
- windows下安装easy_install, pip 及whl文件安装方法
- windows下安装easy_install, pip 及whl文件安装方法
- 安装python工具 easy_install pip
- python安装pip和easy_install
- python 安装easy_install和pip
- Windows安装Python、pip、easy_install
- python 安装 easy_install 和 pip
- python 安装easy_install和pip
- python 安装easy_install和pip
- python 安装easy_install和pip
- JS跳转方式
- Android DownloadManager 的使用
- ubuntu android编译和开发环境配置记录
- 美团实时计算平台实践与应用
- 虚拟机中安装Oracle在宿主机中使用PLSQL Developer连接教程
- Linux 下安装easy_install 安装pip 安装django
- 图片的旋转
- hibernate.hbm2ddl.auto配置及意义
- 黑马程序员-双列集合
- 注意!五一后新入市的人将暴亏
- ci框架中添加Session数据、取Session数据、删除Session数据
- java的文件读写
- 使用树莓派进行pH测定
- 毕业生注意事项