分类目录归档:Errors

[ websocket安装模块错误 ]


配置bing-chat项目时

Bing-Chat项目GITHUB

1. 克隆到本地 git clone xxx

2. 使用Dockerfile文件生成Python镜像文件

# 改良版(未测试)
FROM python:3
ENV PYTHONUNBUFFERED 1
WORKDIR /usr/src/app

RUN apt-get install default-libmysqlclient-dev -y && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

COPY requirements.tx

< Read more >

[ pip下载速度慢 ]


python包管理器pip下载速度慢

清华 终端输入下面两行配置:

RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple && \
  pip config set install.trusted-host mirrors.aliyun.com

阿里

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip config set install.trusted-host mirrors.a

< Read more >