#!/usr/bin/env python
#
# Hi There!
#
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base85 encoding of a zip file, this zip file contains
# an entire copy of pip (version 23.1.2).
#
# Pip is a thing that installs packages, pip itself is a package that someone
# might want to install, especially if they're looking to run this get-pip.py
# script. Pip has a lot of code to deal with the security of installing
# packages, various edge cases on various platforms, and other such sort of
# "tribal knowledge" that has been encoded in its code base. Because of this
# we basically include an entire copy of pip inside this blob. We do this
# because the alternatives are attempt to implement a "minipip" that probably
# doesn't do things correctly and has weird edge cases, or compress pip itself
# down into a single file.
#
# If you're wondering how this is created, it is generated using
# `scripts/generate.py` in https://github.com/pypa/get-pip.
import sys
this_python = sys.version_info[:2]
min_version = (3, 7)
if this_python < min_version:
message_parts = [
"This script does not work on Python {}.{}".format(*this_python),
"The minimum supported Python version is {}.{}.".format(*min_version),
"Please use https://bootstrap.pypa.io/pip/{}.{}/get-pip.py instead.".format(*this_python),
]
print("ERROR: " + " ".join(message_parts))
sys.exit(1)
import os.path
import pkgutil
import shutil
import tempfile
import argparse
import importlib
from base64 import b85decode
def include_setuptools(args):
"""
Install setuptools only if absent and not excluded.
"""
cli = not args.no_setuptools
env = not os.environ.get("PIP_NO_SETUPTOOLS")
absent = not importlib.util.find_spec("setuptools")
return cli and env and absent
def include_wheel(args):
"""
Install wheel only if absent and not excluded.
"""
cli = not args.no_wheel
env = not os.environ.get("PIP_NO_WHEEL")
absent = not importlib.util.find_spec("wheel")
return cli and env and absent
def determine_pip_install_arguments():
pre_parser = argparse.ArgumentParser()
pre_parser.add_argument("--no-setuptools", action="store_true")
pre_parser.add_argument("--no-wheel", action="store_true")
pre, args = pre_parser.parse_known_args()
args.append("pip")
if include_setuptools(pre):
args.append("setuptools")
if include_wheel(pre):
args.append("wheel")
return ["install", "--upgrade", "--force-reinstall"] + args
def monkeypatch_for_cert(tmpdir):
"""Patches `pip install` to provide default certificate with the lowest priority.
This ensures that the bundled certificates are used unless the user specifies a
custom cert via any of pip's option passing mechanisms (config, env-var, CLI).
A monkeypatch is the easiest way to achieve this, without messing too much with
the rest of pip's internals.
"""
from pip._internal.commands.install import InstallCommand
# We want to be using the internal certificates.
cert_path = os.path.join(tmpdir, "cacert.pem")
with open(cert_path, "wb") as cert:
cert.write(pkgutil.get_data("pip._vendor.certifi", "cacert.pem"))
install_parse_args = InstallCommand.parse_args
def cert_parse_args(self, args):
if not self.parser.get_default_values().cert:
# There are no user provided cert -- force use of bundled cert
self.parser.defaults["cert"] = cert_path # calculated above
return install_parse_args(self, args)
InstallCommand.parse_args = cert_parse_args
def bootstrap(tmpdir):
monkeypatch_for_cert(tmpdir)
# Execute the included pip and use it to install the latest pip and
# setuptools from PyPI
from pip._internal.cli.main import main as pip_entry_point
args = determine_pip_install_arguments()
sys.exit(pip_entry_point(args))
def main():
tmpdir = None
try:
# Create a temporary working directory
tmpdir = tempfile.mkdtemp()
# Unpack the zipfile into the temporary directory
pip_zip = os.path.join(tmpdir, "pip.zip")
with open(pip_zip, "wb") as fp:
fp.write(b85decode(DATA.replace(b"\n", b"")))
# Add the zipfile to sys.path so that we can import it
sys.path.insert(0, pip_zip)
# Run the bootstrap
bootstrap(tmpdir=tmpdir)
finally:
# Clean up our temporary working directory
if tmpdir:
shutil.rmtree(tmpdir, ignore_errors=True)
DATA = b"""
P)h>@6aWAK2ms(pnpOdJ9~Srk003nH000jF003}la4%n9X>MtBUtcb8c|B0UO2j}6z0X&KUUXrd;wrc
n6ubz6s0VM$QfAw<4YV^ulDhQoop$MlK*;0e<?$L01LzdVw?IP-tnf*qTlkJj!Mom=viw7qw3H>hK(>
3Z_jZ>VV`^+*aO7_tw^Cd$4zs{Pl#j>6{|X*AaQ6!2wJ?w>%d+2&1X4Rc!^r6h-hMtH_<n)`omXfA!z
c)+2_nTCfpGRv1uvmTkcug)ShEPeC#tJ!y1a)P)ln~75Jc!yqZE1Gl6K?CR$<8F6kVP)a}pU*@~6k=y
<MFxvzbFl3|p@5?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%H~r`8#VV{D!!(UMBd94M9GxnKfLFZz7T$d6N~+ca-?5#f2RFEdlxM*G?W6ErQaLd
-ZtL;~P)h>@6aWAK2ms(pnpT#zaG_BF002D#000>P003}la4%nJZggdGZeeUMUtei%X>?y-E^v8ukug
uiFbswF{0i$>t`ejR5^xfXOea{_5ITj{ZH>|-*e<C59=C8HB*+r$$$9?r+;JX3=R&Cm8cSw{J&B&eeN
oCOMCZQbLd72_DYB`4Qi|d!y<npU!DeDq4oTKlIDwR3gX<RaKi(ZD9b)dCI{`|hOWhmAwt{gIg=d5&#
E7j`U1o%k=2ZdB@YU;k)V-C++sbU-2WkcwLMfO8f*!}@4#sSjV{WI2;@vXK{~qd`Yti}wrETC|cCbAr
@VEr>D9TSy6<otzPFTU&jZy2)ft}4}^DvP8N}w<b@|#f`GvwGplau6#APrMd0UZo%3^Rx&5tnZ=cF33
-<5=xTy<3Z0vj}ZVpBT`h1`F>L1Q7<+BD=coNr&m#H+ihfTtaPW*CaBb)EDPhm;MO2-v8~xV^W?=HuY
yW@4N)bpD4E7iPN{ZMpU^EP)h>@6aWAK2ms(pnpO-Rh+|s}0009h000^Q003}la4%nJZggdGZeeUMVs
&Y3WM5@&b}n#v)mlq)<G2yN>sMeohb0q|`#7akqa^dt?6@-VxMn<?Y^hXSiiAdtDUu72wzV$*_jES^5
+Et>Y$})4!4knnqaR;C0NC@qmt9fjY+c<JqOOj-YFQ_F&i1ung{;f8E$WKpohYi$Oy-4b*$!vG<HGa2
#iBSiwP;ycfBuYP`mvVgSCh7fve=nNS+u<Wed?)Ne&61Sv{~#$ePmf(mOR6iCDR1&Ma~7!Ul&=cXxdZ
5`?uF3&G;_OZmwape~%&?f}gI|$*Z^PSO2)U{2^
没有合适的资源?快使用搜索试试~ 我知道了~
ChatGPT小型机器人
共11150个文件
png:3693个
py:3161个
pyc:3148个
需积分: 0 42 下载量 184 浏览量
2023-05-30
17:59:06
上传
评论 4
收藏 145.36MB ZIP 举报
温馨提示
利用ChatGPT,如何创建一个属于自己的专属QQ机器人?
资源推荐
资源详情
资源评论
收起资源包目录
ChatGPT小型机器人 (11150个子文件)
tqdm.1 8KB
qr.1 1KB
python311._pth 93B
LICENSE.APACHE 11KB
LICENSE.APACHE 10KB
LICENSE.APACHE2 11KB
AUTHORS 10KB
AUTHORS 1KB
CURRENT.bak 16B
CURRENT.bak 16B
CURRENT.bak 16B
LICENSE.BSD 1KB
LICENSE.BSD 1KB
_speedups.c 7KB
speedups.c 6KB
python.cat 617KB
_c_ast.cfg 4KB
config.cfg 2KB
config.example.cfg 943B
config.example.go-cqhttp.cfg 921B
config.example.go-cqhttp.cfg 921B
初始化.cmd 3KB
初始化.cmd 3KB
初始化.cmd 2KB
初始化.cmd 2KB
初始化.cmd 2KB
启动ChatGPT.cmd 254B
启动ChatGPT.cmd 252B
启动ChatGPT.cmd 250B
启动ChatGPT.cmd 248B
启动ChatGPT.cmd 248B
启动go-cqhttp.cmd 248B
启动go-cqhttp.cmd 244B
启动go-cqhttp.cmd 244B
启动Mirai.cmd 219B
启动Mirai.cmd 215B
katex.min.css 23KB
default.css 20KB
style.css 6KB
github-md.css 1KB
CURRENT 16B
CURRENT 16B
CURRENT 16B
tls-client-64.dll 14.76MB
tls-client-32.dll 13.15MB
python311.dll 5.5MB
libcrypto-1_1.dll 3.28MB
Microsoft.CognitiveServices.Speech.core.dll 2.07MB
sqlite3.dll 1.4MB
libssl-1_1.dll 687KB
libopus-0.x64.dll 432KB
libopus-0.x86.dll 358KB
Microsoft.CognitiveServices.Speech.extension.lu.dll 310KB
Microsoft.CognitiveServices.Speech.extension.kws.dll 301KB
Microsoft.CognitiveServices.Speech.extension.audio.sys.dll 126KB
vcruntime140.dll 107KB
Microsoft.CognitiveServices.Speech.extension.codec.dll 102KB
python3.dll 66KB
vcruntime140_1.dll 48KB
libffi-8.dll 37KB
Dockerfile 740B
Dockerfile-cn 934B
.dockerignore 61B
LICENSE.dual 39KB
tls-client-x86.dylib 9.37MB
tls-client-arm64.dylib 8.93MB
wkhtmltoimage.exe 39.56MB
【语音功能依赖】vc_redist.x64.exe 24.31MB
go-cqhttp.exe 12.1MB
t64-arm.exe 179KB
w64-arm.exe 165KB
gui-arm64.exe 135KB
cli-arm64.exe 134KB
normalizer.exe 106KB
edge-playback.exe 106KB
pip3.11.exe 106KB
pip.exe 106KB
pip3.exe 106KB
openai.exe 106KB
qr.exe 106KB
markdown-it.exe 106KB
hypercorn.exe 106KB
wsdump.exe 106KB
edge-tts.exe 106KB
pygmentize.exe 106KB
markdown_py.exe 106KB
wheel.exe 106KB
quart.exe 106KB
edge-gpt-image.exe 106KB
tqdm.exe 106KB
edge-gpt.exe 106KB
httpx.exe 106KB
t64.exe 106KB
python.exe 101KB
w64.exe 100KB
pythonw.exe 99KB
t32.exe 96KB
w32.exe 90KB
gui-64.exe 74KB
cli-64.exe 73KB
共 11150 条
- 1
- 2
- 3
- 4
- 5
- 6
- 112
资源评论
库库新
- 粉丝: 326
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功