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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -