- 国外常用python库,很全,收藏
- windows 更换pip 源
1.打开任意文件夹,在上方地址栏中输入%appdata%.
2.在此目录里新建文件夹pip
3.在pip文件夹里新建文件名:pip.ini
4.把以下内容复制到pip.ini中,保存即可。
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com
- 将python安装包源代码打包成whl文件(将文件放入setup.py目录内运行即可)
# -*- coding: utf-8 -*-
import os
path0=os.getcwd()
commd='python setup.py sdist'
os.system(commd)
commd2='pip wheel --wheel-dir='+path0+' '+path0
os.system(commd2)
os.system('pause')