First time here? Check out the FAQ!
1

import serial fails in python 3.7 env

  • retag add tags

I just moved my python en for my project to python 3.7 and when I import serial (for pyserial) I get a moduleNotFoundError. Yet the module does exist in python 3.6 environement in dist_packages. is this normal?

piscvau's avatar
526
piscvau
asked 2019-11-08 14:33:11 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Package directories are python version specific most of the time, though there are exceptions. You probably want to install the package for python 3.7 -- I'd need more information to be able to say if dist_packages should be shared and / or if your package would work with both python 3.6 and 3.7 (C extension modules can be version specific).

Wingware Support's avatar
4.1k
Wingware Support
answered 2019-11-08 14:46:58 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for your so quic aanswer. Yes pyserial needed to be installed in environment 3.7. Thanks

piscvau's avatar piscvau (2019-11-08 17:01:15 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer