Embedding 向量生成GPT数据使用相关

如果使用python3.6的版本,使用pycharm创建工程,那么默认会使用 docx包,这样运行程序会爆异常,突然想起以前请教的一个大神,想当 初,这个问题困扰了我 两天时间,在此记录一下:

python-docx

一直报这个错误:

解决办法:

修改注册表信息

参考:https://github.com/pypa/pip/issues/7424#issuecomment-589675343

http://www.noobyard.com/article/p-shumspjw-vm.html

Step 1:

Press Win+R to open Run, type in "regedit" and click OK.

Step 2:

Move to HKEY_CURRENT_USER/Software/Microsoft/Windows/Current Version/Internet Settings.

Step 3:

Find a file with the name 'ProxyServer' and 将值修改为0.

注意:修改为0之后就不能使用代理科学上网了,下载好包之后,可以再改成1。

代码 头部网络代理 使用示例:

pip install pinecone-client

pip install flask -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

python记事本:

pip install xxx --user 会安装到系统的python里面 而不是 anaconda里面的python。别用

安装库时候后面加 -i https://pypi.tuna.tsinghua.edu.cn/simple 可以使用清华源

如果报:

就将注册表的 计算机\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

里面的 ProxyEnable 代理值先 改为0,实际运行代码时候再改回去!

最后 项目环境中拥有的模块列表:(不一定全用到。)

bash 复制代码
pip list --format=columns

Package                      Version
---------------------------- ---------
absl-py                      1.4.0
aiohttp                      3.8.5
aiosignal                    1.3.1
astunparse                   1.6.3
async-timeout                4.0.3
attrs                        23.1.0
blinker                      1.6.2
cachetools                   5.3.1
certifi                      2023.7.22
charset-normalizer           3.2.0
click                        8.1.3
colorama                     0.4.6
dnspython                    2.4.2
docx                         0.2.4
filelock                     3.12.2
Flask                        2.3.2
flatbuffers                  23.5.26
frozenlist                   1.4.0
fsspec                       2023.6.0
gast                         0.4.0
google-auth                  2.22.0
google-auth-oauthlib         1.0.0
google-pasta                 0.2.0
grpcio                       1.57.0
h5py                         3.9.0
huggingface-hub              0.16.4
idna                         3.4
importlib-metadata           6.8.0
itsdangerous                 2.1.2
Jinja2                       3.1.2
joblib                       1.3.2
keras                        2.13.1
libclang                     16.0.6
loguru                       0.7.0
lxml                         4.9.3
Markdown                     3.4.4
MarkupSafe                   2.1.3
mpmath                       1.3.0
multidict                    6.0.4
networkx                     3.1
numpy                        1.24.3
oauthlib                     3.2.2
openai                       0.27.8
opt-einsum                   3.3.0
packaging                    23.1
pandas                       2.0.3
Pillow                       10.0.0
pinecone-client              2.2.2
pip                          23.2.1
protobuf                     4.24.1
pyasn1                       0.5.0
pyasn1-modules               0.3.0
python-dateutil              2.8.2
python-docx                  0.8.11
pytz                         2023.3
PyYAML                       6.0.1
regex                        2023.8.8
requests                     2.31.0
requests-oauthlib            1.3.1
rsa                          4.9
safetensors                  0.3.2
scikit-learn                 1.3.0
scipy                        1.10.1
setuptools                   68.0.0
six                          1.16.0
sklearn                      0.0.post7
sympy                        1.12
tensorboard                  2.13.0
tensorboard-data-server      0.7.1
tensorflow                   2.13.0
tensorflow-estimator         2.13.0
tensorflow-intel             2.13.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor                    2.3.0
threadpoolctl                3.2.0
tokenizers                   0.13.3
torch                        2.0.1
tqdm                         4.66.1
transformers                 4.31.0
typing_extensions            4.5.0
tzdata                       2023.3
urllib3                      1.26.16
Werkzeug                     2.3.7
wheel                        0.38.4
win32-setctime               1.1.0
wrapt                        1.15.0
yarl                         1.9.2
zipp                         3.16.2
相关推荐
Code_流苏18 小时前
AI热点周报(9.7~9.13):阿里Qwen3-Next震撼发布、Claude 增强记忆与服务抖动、OpenAI 聚焦模型规范化...
人工智能·gpt·ai·openai·claude·qwen3-next·架构创新
gptplus2 天前
【重要通知】ChatGPT Plus将于9月16日调整全球充值定价,低价区将被弃用,开发者如何应对?
人工智能·gpt·chatgpt
nju_spy2 天前
GPT 系列论文1-2 两阶段半监督 + zero-shot prompt
人工智能·gpt·nlp·大语言模型·zero-shot·transformer架构·半监督训练
*星星之火*2 天前
【GPT入门】第67课 多模态模型实践: 本地部署文生视频模型和图片推理模型
gpt
技术程序猿华锋2 天前
深度解码OpenAI的2025野心:Codex重生与GPT-5 APIKey获取调用示例
人工智能·vscode·python·gpt·深度学习·编辑器
钝挫力PROGRAMER3 天前
GPT与BERT BGE
人工智能·gpt·bert
edisao3 天前
[特殊字符] 从助手到引擎:基于 GPT 的战略协作系统演示
大数据·人工智能·gpt
陈敬雷-充电了么-CEO兼CTO4 天前
BLIP-2革新多模态预训练:QFormer桥接视觉语言,零样本任务性能飙升10.7%!
人工智能·gpt·机器学习·机器人·多模态·blip·多模态大模型
安思派Anspire4 天前
GPT-OSS 深度解析:OpenAI 最新大语言模型(LLM)架构
gpt·语言模型·架构
luoganttcc5 天前
PyTorch 中nn.Embedding
pytorch·深度学习·embedding