标签:mys setup ted 文件 dea however rip ip) lib
(1)常用lib下载地址:
https://pypi.python.org/pypi
(2)安装
1.下载安装,在命令行进入setup.py的目录后,执行python setup.py install setup.py为下载安装的安装包中的文件
2.pip install 安装(windows安装默认已经安装pip)
pip install awscli- 1.15.29-py2.py3-none-any.whl
pip install awscli
3.easy install 安装
easy install pybbdb
代理安装:pip install requests -i http://pypi.douban.com/simple/--trusted-host pypi.douban.com
#创建虚拟环境
python -m venv .
进入虚拟环境
Scripts\activate.bat
#在虚拟环境中安装lib
pip install XXX
#退出虚拟环境
Scripts\deactivate.bat
#安装mysql
venv:pip install pymysql
共存一段时间后如果pip install 出现如下错误:
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command.
需要重新配置下pip
配置python3的pip :python3 -m pip install --upgrade pip --force-reinstall
标签:mys setup ted 文件 dea however rip ip) lib
原文地址:https://www.cnblogs.com/wenjing2019/p/12162807.html