python - Why is python3 not finding a module? -
running script (which imports ply) python 2.7 works without issue. trying run same script python3 causes following. (note: i'm on v3.10 of ply - latest should compatible python3).
bos-mpqpu:config_parse rabdelaz$ python3 lexparse.py traceback (most recent call last): file "lexparse.py", line 1, in <module> import ply.lex lex modulenotfounderror: no module named 'ply' bos-mpqpu:config_parse rabdelaz$ pip show ply | grep version version: 3.10
i've installed python3:
bos-mpqpu:config_parse rabdelaz$ python3 python 3.6.2 (v3.6.2:5fd33b5926, jul 16 2017, 20:11:06) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import ply traceback (most recent call last): file "<stdin>", line 1, in <module> modulenotfounderror: no module named 'ply' >>>
try command if have pip3
pip3 install ply
Comments
Post a Comment