1

Whenever I type Import Serial the import statement just turns grey and does nothing. I have installed Py-Serial using pip install pyserial and it said it was successful but for some reason I cant import it. Any help would be appreciated.

2
  • 1
    I'm assuming its turned gray because of your IDE? Commented Apr 16, 2021 at 20:26
  • 2
    What editor are you using? Many editors will show gray import statements if they are not used. Import statements by themselves don't really do much. You need to actually use the import in later code. Commented Apr 16, 2021 at 20:26

1 Answer 1

1

Whenever I type Import Serial the import statement just turns grey and does nothing.

An import statement by itself doesn't do anything*. Many editors will show gray import statements if they are not used. You need to add code that uses the imported module such as serial.some_function().

*Oversimplified for the current context.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.