1.安装包
https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe
安装成功后 ctrl+r 输入 cmd 执行 python 检验是否安装成功
pip 镜像源更新
pip -v config list
创建 pip.ini 文件修改镜像源
常用镜像源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Package # 清华镜像源 不太稳定
pip install -i https://pypi.doubanio.com/simple Package # 豆瓣镜像源
pip install -i https://mirrors.aliyun.com/pypi/simple # 阿里云镜像
在pip.ini文件添加
[global]
timeout = 6000
index-url = https://mirrors.aliyun.com/pypi/simple
pip 版本更新超时处理
自行下载路径上的文件手动安装
https://files.pythonhosted.org/packages/e0/63/b428aaca15fcd98c39b07ca7149e24bc14205ad0f1c80ba2b01835aedde1/pip-23.3-py3-none-any.whl
--安装
pip install .\pip-23.3-py3-none-any.whl
3.安装依赖包
pip freeze > tee requirements.txt # 输出本地包环境至文件
pip install -r requirements.txt # 根据文件进行包安装
自用依赖 requirements.txt
-e git+https://github.com/openatx/weditor@e52a7d09dc72bff372a8a5afe41fe41a411b4336#egg=weditor
adbutils==1.0.1
apkutils2==1.0.0
asgiref==3.3.4
blinker==1.4
Brotli==1.0.9
cached-property==1.5.2
certifi==2022.6.15
cffi==1.15.0
charset-normalizer==2.1.0
cigam==0.0.3
click==7.1.2
colorama==0.4.5
cryptography==3.2.1
decorator==5.1.1
Deprecated==1.2.13
deprecation==2.1.0
facebook-wda==1.4.6
filelock==3.7.1
Flask==1.1.4
h11==0.13.0
h2==4.1.0
hpack==4.0.0
hyperframe==6.0.1
idna==3.3
itsdangerous==1.1.0
Jinja2==2.11.3
kaitaistruct==0.9
ldap3==2.8.1
logzero==1.7.0
lxml==4.9.1
MarkupSafe==2.1.1
mitmdump==1.1.2
mitmproxy==5.3.0
msgpack==1.0.4
numpy
packaging==20.9
pandas==1.3.5
passlib==1.7.4
Pillow==9.2.0
progress==1.6
protobuf==3.13.0
publicsuffix2==2.20191221
py==1.11.0
pyasn1==0.4.8
pycparser==2.21
pydivert==2.1.0
pyelftools==0.28
pyOpenSSL==19.1.0
pyparsing==2.4.7
pyperclip==1.8.2
python-dateutil==2.8.2
pytz==2022.1
pywin32
requests==2.28.1
retry==0.9.2
ruamel.yaml==0.16.13
ruamel.yaml.clib==0.2.6
six==1.16.0
sortedcontainers==2.2.2
tornado==6.1
typing_extensions==4.2.0
uiautomator==1.0.2
uiautomator2==2.16.17
urllib3==1.26.9
urwid==2.1.2
Werkzeug==1.0.1
whichcraft==0.6.1
wrapt==1.14.1
wsproto==0.15.0
xmltodict==0.13.0
zstandard==0.14.1
PYmysql==1.1.0