已安装的模块未找到

时间:2021-01-06 02:22:20

标签: python-3.x module pip

我遇到了一个非常基本的错误,但我找不到任何适用于我的案例的类似主题的解决方案。我想在 Python 上使用模块 dateparser,所以我在 cmd 上使用 pip install dateparser 安装了它。

在 Python 上使用 import dateparser 时,我有:ModuleNotFoundError: No module named 'dateparser'

以下是我使用 pip install dateparser 重新尝试安装时的结果:

Requirement already satisfied: dateparser in c:\users\hp\appdata\local\programs\python\python37\lib\site-packages (1.0.0)
Requirement already satisfied: python-dateutil in c:\users\hp\appdata\local\programs\python\python37\lib\site-packages (from dateparser) (2.8.1)
Requirement already satisfied: regex!=2019.02.19 in c:\users\hp\appdata\local\programs\python\python37\lib\site-packages (from dateparser) (2020.11.13)
Requirement already satisfied: pytz in c:\users\hp\appdata\local\programs\python\python37\lib\site-packages (from dateparser) (2020.5)
Requirement already satisfied: tzlocal in c:\users\hp\appdata\local\programs\python\python37\lib\site-packages (from dateparser) (2.1)
Requirement already satisfied: six>=1.5 in c:\users\hp\appdata\local\programs\python\python37\lib\site-packages (from python-dateutil->dateparser) (1.15.0)

这是我的系统路径:

['',
'c:\\users\\hp\\anaconda3\\python37.zip',
'c:\\users\\hp\\anaconda3\\DLLs',
'c:\\users\\hp\\anaconda3\\lib',
'c:\\users\\hp\\anaconda3',
'c:\\users\\hp\\anaconda3\\lib\\site-packages',
'c:\\users\\hp\\anaconda3\\lib\\site-packages\\win32',
'c:\\users\\hp\\anaconda3\\lib\\site-packages\\win32\\lib',
'c:\\users\\hp\\anaconda3\\lib\\site-packages\\Pythonwin']

我使用 Sublime Text 3,提前致谢!

0 个答案:

没有答案