【发布时间】:2019-08-14 15:43:07
【问题描述】:
您好,我一直在尝试为 Jupyter Notebook 安装 twython。我已经通过 python repl 证明它在我的笔记本电脑中普遍安装。但它仍然不会出现在 Jupyter Notebook 上。在我的 Anaconda 3 Jupyter Notebook 可以找到的地方寻找帮助试图找出它。
背景:家庭作业试图挖掘推特的推文
这是我收到的错误,我正在运行 Mac OS
/Users/name/twitter/__init__.py:22: UserWarning: The twython library has not been installed. Some functionality from the twitter package will not be available.
"The twython library has not been installed. "
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-38297a1141e0> in <module>
----> 1 import twitter
2 import twython
3 #---------------------------------------------
4 # Define a Function to Login Twitter API
5 def oauth_login():
~/twitter/__init__.py in <module>
34
35
---> 36 from nltk.twitter.common import json2csv
ModuleNotFoundError: No module named 'nltk.twitter
【问题讨论】:
标签: python-3.x twitter jupyter-notebook anaconda twython