I'm getting this error when using the chatterbot library in python 3.7I'm getting this error when using the chatterbot library in python in 3.7How to get file creation & modification date/times in Python?Python error “ImportError: No module named”How to get the current time in PythonHow can I get a list of locally installed Python modules?How to get line count cheaply in Python?Getting the last element of a list in PythonHow do I get the number of elements in a list in Python?How to get the home directory in Python?Installed chatbot but getting Error while importing ChatBotUnable to import Chatterbot even after installing the chatterbot package through pip as well as on Pycharm through Python interpreter
How to prevent cooked noodles & dumplings from getting soggy
Ex-manager wants to stay in touch, I don't want to
How to compact two the parabol commands in the following example?
A curve pass via points at TiKz
Why was the Ancient One so hesitant to teach Dr. Strange the art of sorcery?
Anatomically Correct Carnivorous Tree
Front derailleur hard to move due to gear cable angle
Is it a bad idea to replace pull-up resistors with hard pull-ups?
Why is “Ich wusste, dass aus dir mal was wird” grammitally correct?
Reaction of borax with NaOH
Smallest Guaranteed hash collision cycle length
Why was Thor doubtful about his worthiness to Mjolnir?
How do I compare the result of "1d20+x, with advantage" to "1d20+y, without advantage", assuming x < y?
Why does the Earth follow an elliptical trajectory rather than a parabolic one?
Understanding integration over Orthogonal Group
Does Lawful Interception of 4G / the proposed 5G provide a back door for hackers as well?
Why does getw return -1 when trying to read a character?
How could a Lich maintain the appearance of being alive without magic?
Word for being out at night during curfew
SSD - Disk is OK, one bad sector
Is the schwa sound consistent?
Why can't RGB or bicolour LEDs produce a decent yellow?
Why not just directly invest in the holdings of an ETF?
Extracting sublists that contain similar elements
I'm getting this error when using the chatterbot library in python 3.7
I'm getting this error when using the chatterbot library in python in 3.7How to get file creation & modification date/times in Python?Python error “ImportError: No module named”How to get the current time in PythonHow can I get a list of locally installed Python modules?How to get line count cheaply in Python?Getting the last element of a list in PythonHow do I get the number of elements in a list in Python?How to get the home directory in Python?Installed chatbot but getting Error while importing ChatBotUnable to import Chatterbot even after installing the chatterbot package through pip as well as on Pycharm through Python interpreter
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
This is my code:
from chatterbot import chatbot
from chatterbot.trainers import ListTrainer
bot = chatbot('Dona') conv = open('sample.txt', 'r').readlines()
bot.set_trainer(ListTrainer) bot.train(conv)
while True:
query = input("You: ")
reply = bot.get_response(query)
print("Bot: ", response)
I am receiving this error:
from pytz import UTC ModuleNotFoundError: No module named 'pytz'
Thanks in advance for any help.
python python-import
add a comment |
This is my code:
from chatterbot import chatbot
from chatterbot.trainers import ListTrainer
bot = chatbot('Dona') conv = open('sample.txt', 'r').readlines()
bot.set_trainer(ListTrainer) bot.train(conv)
while True:
query = input("You: ")
reply = bot.get_response(query)
print("Bot: ", response)
I am receiving this error:
from pytz import UTC ModuleNotFoundError: No module named 'pytz'
Thanks in advance for any help.
python python-import
2
Did you install pytz? pip install pytz
– Devesh Kumar Singh
Mar 23 at 12:10
add a comment |
This is my code:
from chatterbot import chatbot
from chatterbot.trainers import ListTrainer
bot = chatbot('Dona') conv = open('sample.txt', 'r').readlines()
bot.set_trainer(ListTrainer) bot.train(conv)
while True:
query = input("You: ")
reply = bot.get_response(query)
print("Bot: ", response)
I am receiving this error:
from pytz import UTC ModuleNotFoundError: No module named 'pytz'
Thanks in advance for any help.
python python-import
This is my code:
from chatterbot import chatbot
from chatterbot.trainers import ListTrainer
bot = chatbot('Dona') conv = open('sample.txt', 'r').readlines()
bot.set_trainer(ListTrainer) bot.train(conv)
while True:
query = input("You: ")
reply = bot.get_response(query)
print("Bot: ", response)
I am receiving this error:
from pytz import UTC ModuleNotFoundError: No module named 'pytz'
Thanks in advance for any help.
python python-import
python python-import
edited Mar 23 at 13:06
Szymon Maszke
3,1681730
3,1681730
asked Mar 23 at 12:09
Hamza ContinuityHamza Continuity
163
163
2
Did you install pytz? pip install pytz
– Devesh Kumar Singh
Mar 23 at 12:10
add a comment |
2
Did you install pytz? pip install pytz
– Devesh Kumar Singh
Mar 23 at 12:10
2
2
Did you install pytz? pip install pytz
– Devesh Kumar Singh
Mar 23 at 12:10
Did you install pytz? pip install pytz
– Devesh Kumar Singh
Mar 23 at 12:10
add a comment |
1 Answer
1
active
oldest
votes
pip install pytz
may not work because you are running Python 3.x
Enter pip3 install pytz
into your command prompt and if the installation is successful, the error will go away.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55313582%2fim-getting-this-error-when-using-the-chatterbot-library-in-python-3-7%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
pip install pytz
may not work because you are running Python 3.x
Enter pip3 install pytz
into your command prompt and if the installation is successful, the error will go away.
add a comment |
pip install pytz
may not work because you are running Python 3.x
Enter pip3 install pytz
into your command prompt and if the installation is successful, the error will go away.
add a comment |
pip install pytz
may not work because you are running Python 3.x
Enter pip3 install pytz
into your command prompt and if the installation is successful, the error will go away.
pip install pytz
may not work because you are running Python 3.x
Enter pip3 install pytz
into your command prompt and if the installation is successful, the error will go away.
answered Mar 23 at 12:14
alec_aalec_a
3,13031031
3,13031031
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55313582%2fim-getting-this-error-when-using-the-chatterbot-library-in-python-3-7%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Did you install pytz? pip install pytz
– Devesh Kumar Singh
Mar 23 at 12:10