PYTHON3 "IN" module cannot be imported

Issues related to applications and software problems
Post Reply
songwei
Posts: 1
Joined: 2017/06/27 03:52:47

PYTHON3 "IN" module cannot be imported

Post by songwei » 2017/06/27 04:07:28

when I learning python3 on centos6.8. there's a mistake about 'IN' module.

Python 3.6.1 (default, May 12 2017, 11:22:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import IN
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'IN'

------------------------------------------------------------------------------------------------------------

but with python2 on same machine or use other didtribution of linux, it works!

Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import IN
>>> dir(IN)

Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import IN
>>> dir(IN)

Is that something wrong with my centos ? Is there anyone had met this before?

Post Reply