python - 尝试在 heroku 上部署应用程序,错误:nltk.downloader(运行时警告)
问题描述
我收到以下错误,因此我部署的应用程序不可见,请帮助我解决此问题:
Downloading NLTK packages: wordnet punkt stopwords vader_lexicon
/app/.heroku/python/lib/python3.9/runpy.py:127: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
解决方案
推荐阅读
- python - 在 sympy 中解析数组表达式
- python-3.x - 使用插值从 csv 文件绘制等高线图:结果为 NaN
- javascript - 如何将“面积(平方公里):整数”添加到我的架构中
- javascript - React Hook "useDispatch" 在函数 "setApprovedDecision" 中被调用,它既不是 React 函数组件
- sql - 更新记录以从相关记录之一设置值
- python - 用python进行变量替换
- python - “请在此处输入您的密码:无”无问题
- javascript - 使用 Google Apps 脚本将 gmail 中的数据提取到电子表格中
- flutter - 使用颤振包flutter_charts实时表示图形的最佳方法是什么?
- java - 收到错误“任务':app:compileReleaseJavaWithJavac'的执行失败。” 尝试在 Apache Cordova 中构建 android 应用程序时