![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
hadesdain
这个作者很懒,什么都没留下…
展开
-
conda 配置国内源包含pytorch
conda 配置国内源包含pytorchconda配置清华源conda配置清华源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forgeconda config --add channels https://m原创 2021-08-26 14:21:50 · 156 阅读 · 0 评论 -
pika.exceptions.ChannelWrongStateError: Channel is closed.
问题:pika.exceptions.ChannelWrongStateError: Channel is closed.rabbitmq的service默认启用heatbeat,会检测连接长时间是否使用,长时间未使用会关闭该连接。heartbeat_interval:该参数设置为0时,禁用服务器的heatbeat检测,长时间不使用不会关闭该连接。params = pika.Connecti...原创 2019-12-23 17:50:27 · 4868 阅读 · 2 评论 -
python3中pillow打开图像旋转问题
python3中pillow打开图像旋转问题实际是pillow打开图像不会旋转python3中pillow打开图像不会读取图像的exif信息对图像的方向进行调整。可以根据如下代码处理图片:会读取图片的exif信息并调整图片的方向pip install img_rotatefrom img_rotate import fix_orientationfile_path=r'图片路径'i...原创 2019-11-05 17:23:00 · 1372 阅读 · 2 评论 -
wooey更改缓存数据库为redis
wooey更改缓存数据库为redis在自己的wooey项目目录的settings下找到user_settings.py文件在自己的wooey项目目录的settings下找到user_settings.py文件将以下内容:修改为:WOOEY_REALTIME_CACHE = ‘default’CACHES = {“default”: {“BACKEND”: “django_redi...原创 2019-11-05 16:58:20 · 228 阅读 · 0 评论