1.需要把pip升级后再安装
相关命令
python -m pip install --upgrade pip
pip install --upgrade pip
pip install --upgrade wheel
注:部分软件需要使用pip3安装
eg:
pip3 install aiohttp
例如安装图像包
pip install Pillow
安装mysql
pip install mysql-connector-python-rf --allow-external mysql-connector-python
安装sqlalchemy--ORM数据库
pip install sqlalchemy
C:\Users\basycai>python -m pip install --upgrade pip
Collecting pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 379kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-8.1.2
C:\Users\basycai>pip install Pillow
Collecting Pillow
Downloading Pillow-3.3.1-cp35-cp35m-win_amd64.whl (1.5MB)
100% |████████████████████████████████| 1.5MB 144kB/s
Installing collected packages: Pillow
Successfully installed Pillow-3.3.1