- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
尝试安装包失败并出现以下错误。我用谷歌搜索并安装了 setuptools - 仍然遇到同样的错误。
命令:pip install newspaper
Collecting nltk==2.0.5 (from newspaper)
Using cached nltk-2.0.5.tar.gz
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
Extracting in C:\Users\pratik\AppData\Local\Temp\tmp0mun48pu
Traceback (most recent call last):
File "c:\users\pratik\appdata\local\temp\pip-build-6gyje7fp\nltk\distribute_setup.py", line 143, in use_setuptools
raise ImportError
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\pratik\AppData\Local\Temp\pip-build-6gyje7fp\nltk\setup.py", line 23, in <module>
distribute_setup.use_setuptools()
File "c:\users\pratik\appdata\local\temp\pip-build-6gyje7fp\nltk\distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "c:\users\pratik\appdata\local\temp\pip-build-6gyje7fp\nltk\distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "c:\users\pratik\appdata\local\temp\pip-build-6gyje7fp\nltk\distribute_setup.py", line 99, in _build_egg
_extractall(tar)
File "c:\users\pratik\appdata\local\temp\pip-build-6gyje7fp\nltk\distribute_setup.py", line 467, in _extractall
self.chown(tarinfo, dirpath)
TypeError: chown() missing 1 required positional argument: 'numeric_owner'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\pratik\AppData\Local\Temp\pip-build-6gyje7fp\nltk
最佳答案
如果您尝试使用 python3 安装,请运行pip3 安装 newspaper3k
如果您正在尝试为 python2 安装并希望首先运行报纸
pip install --upgrade setuptools
然后
pip安装报纸
关于Python包(报纸)安装报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35469917/
尝试安装包失败并出现以下错误。我用谷歌搜索并安装了 setuptools - 仍然遇到同样的错误。 命令:pip install newspaper Collecting nltk==2.0.5 (f
我正在尝试使用 Python 库 newspaper来自 Wayback Machine 的文件,存储已存档的旧版本网站。理论上,可以从这些文件中查询和下载旧的新闻文章。 例如,下面的代码查询文件 C
因此,基本上我的问题是:报亭工具包可以在单个应用程序中用于几种不同的杂志订阅吗?从wwdc 504 session 来看,这并不是真的。以我的理解,杂志/报纸订阅似乎与1个应用程序结合在一起。例如,U
我的 wordpress 主题中的 css 图像宽度样式有问题。图像宽度设置为 100%,但图像以其原始大小显示。并且溢出以某种方式被隐藏了。但是我无法弄清楚是哪个元素导致了这种行为以及如何解决它?
有没有什么 CSS 技术或好的 js 技术来布局内容,让你有一个像“报纸”一样的页面。给定一个包含一堆内容的 div(或其他),将该内容拆分为 N 列,总宽度为一些预定义的宽度。 假设 N = 3,假
我正在尝试从我可以通过网络(例如 Safari)浏览的文章中下载文本。 错误是: newspaper.article.ArticleException: Article `download()` fa
我是一名优秀的程序员,十分优秀!