Ask Your Question
1

import serial fails in python 3.7 env

asked 2019-11-08 14:33:11 -0500

piscvau's avatar

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-11-08 14:46:58 -0500

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).

edit flag offensive delete link more

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-11-08 14:33:11 -0500

Seen: 293 times

Last updated: Nov 08 '19