Using PIP to manage Python packages
2015/10/10 Time 20:38
First, install the PIP "Linux" Yum install python-pip "Win" Install Python, the default has been installed PIP II, using the PIP installation package "Linux" [[email protected] ~]# pip install Django==1.6.0 collecting django==1.6.0/usr/lib/python2.6/site-packages/pip/_vendor/ Requests/packages/urllib3/util/ssl_.py:90: 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.6-py2.py3-none-any.whl (6.7MB) 100% | ████████████████████████████████| 6.7mb 74kb/s installing collected packages: djangosuccessfully installed django-1.6[[email protected] ~]# python -c "Import django;print (Django.get_version ())" 1.6 "Win" D:\apps\Python34\ Scripts>pip install djangoyou are using pip version 6.0.8, however version 7.1.0 is available. you should consider upgrading via the ' Pip install --upgrade pip ' command. collecting django downloading django-1.8.3-py2.py3-none-any.whl (6.2MB) 100% |################################| 6.2MB 75kB/sInstalling collected packages: djangod:\apps\python34>python -c "Import django;print (Django.get_version ())" 1.8.3successfully installed django-1.8.3 Third, other usage specify the version number to install:pip install django==1.6.0 Uninstall: Pip install django Install the specified package from a text file: PIP INSTALL -R&NBsp;requirements.txtpip freeze >requirements.txt. version issue under Windows installation ovirt-engine-sdk-python encountered an exception: # pip install ovirt-engine-sdk-pythonplease specify --curl-dir=/path/to/ Built/libcurlpycurl exception, the official website is Win32 version, after installation, subsequent use may be error:pycurl dll load failed: %1 is not valid Win32 applications. The AMD64 version can be found here, and then manually installed with PIP: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurlZYXW, reference 1, django environment Build/HTTP Www.ziqiangxuetang.com/django/django-install.html
Using PIP to manage Python packages