1、pycharm 安装了gradio,写了个简单的脚本,输出框一直报error gradio版本是3.34.0
解决方案:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pydantic==1.10.7
2、使用 pydub处理音频文件,报错RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg
解决方案:Builds - CODEX FFMPEG @ gyan.dev 下载ffmpeg,将bin路径添加到环境变量
然后在报错文件的153行,显示添加路径位置
envdir_list.append(r'D:\softwareinstall\ffmpeg-7.0.1-essentials_build\bin')
3、django 版本 停止运行报TypeError: argument of type ‘WindowsPath‘ is not iterable
解决方案:在Django setting 的 DATABASES配置修改为
'NAME': os.path.join(BASE_DIR,'db.sqlite3') ,
4、django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
解决方案:之前选成url了,应该是manage.py

5、vue和Django打通的项目,运行执行提示
TemplateDoesNotExist at /index.html

解决方案 修改setting配置的template的地方
之前

修改为

就可以了
6、pip安装提示
nicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 74: illegal multibyte sequence
解决办法,执行set PYTHONUTF8=1
1万+

被折叠的 条评论
为什么被折叠?



