#πŸ”’ "import serial" command not being valid

11 messages Β· Page 1 of 1 (latest)

late rose
#

Hello, this is a continuation from the post made 11 hours ago, I did the command 'pip install pyserial' in my windows cmd, and that was successful, I then checked my version of python, which came across as 3.9.13, my Pycharm also says 3.9 in the bottom right. Although when I go into Pycharm, and type "import serial", It says that there is "No module named ' serial ' "

spring treeBOT
#

@late rose

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

minor raven
#

Probably you need to run the pip install inside PyCharm also. ISTR that it has it's own Python environment, and may not see installs you do outside pycharm.

late rose
#

Whenever I try it inside pycharm, it just returns that install is an invalid syntax

minor raven
#

Reach their instructions carefully. Probably you're typing pip install at a Python prompt, where it is indeed not valid Python.

See exactly what the page above says to do.

late rose
#

I will read the above, thanks anyway

#

Thank you so much ! that resolved the issue πŸ˜„

spring treeBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

πŸ”’ "import serial" command not being valid