Problem Importing Python Twint Module to Jupyter Notebook - ModuleNotFoundError: No module named 'twint'

Problem Importing Python Twint Module to Jupyter Notebook - ModuleNotFoundError: No module named 'twint'

当我尝试将 twint 包 (https://pypi.org/project/twint/) 导入 Jupyter Notebook 时,我收到一条错误消息。

import twint

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-5772b804c290> in <module>
----> 1 import twint

ModuleNotFoundError: No module named 'twint' 

但是我知道twint安装好了。

C:\Users\my_user>pip show twint

Name: twint
Version: 2.1.20
Summary: An advanced Twitter scraping & OSINT tool.
Home-page: https://github.com/twintproject/twint
Author: Cody Zacharias
Author-email: codyzacharias@pm.me
License: MIT
Location: c:\users\my_user\appdata\local\programs\python\python39\lib\site-packages
Requires: beautifulsoup4, pysocks, aiohttp, cchardet, googletransx, schedule, geopy, fake- 
useragent, aiohttp-socks, elasticsearch, pandas, aiodns
Required-by:

我看过 Python "ImportError: No module named twint" on Atom trying to use twint (Python Module),我知道我没有安装两个版本的 python。

我该如何前进?我想使用这个或类似的模块,而不是 Twitter API.

谢谢!

今天早上我在尝试开始使用 twint 时遇到了同样的问题。
twint 似乎只与 python 3.6 兼容,而我使用的是更新的版本。我下载了 python 3.6,并且 运行

python3.6 -m pip install twint

在命令行中。似乎现在可以工作了。

进口nest_asyncio nest_asyncio.apply() 在导入 twint

之前输入