Skip to content Skip to sidebar Skip to footer

Both Python 2 And Python 3 Installed On Macos, But Pip Command Install Libraries Only For Python 3

I have both Python 2 and Python 3 installed on my MacOS (Mojave 10.14.5). When I run my Python 2 code I get: ImportError: No module named if I install the modul

Solution 1:

Does this work?

python2 -m pip install <modulename>

Post a Comment for "Both Python 2 And Python 3 Installed On Macos, But Pip Command Install Libraries Only For Python 3"