python库下载笔记

下载selenium代码库
pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql

下载粘贴框内容代码库
pip install pypiwin32 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql

下载xls库
pip install xlrd -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql
pip install xlwt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql

python2下载:
pip install -U selenium

pip install -U selenium -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql

absl库下载
pip install absl-py -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql

python2中文处理
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

打包exe命令
Pyinstaller -F -w -i main.py
pyinstaller --hidden-import=pkg_resources -F main.py

pip install beautifulsoup4 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install pdfkit -i https://pypi.tuna.tsinghua.edu.cn/simple

python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install configobj -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple

上一篇:struts2中使用ajax之一


下一篇:Ubuntu anaconda3 设置国内镜像源