0

I want to install a module with pip, in my case pydub.
However pip install pydub installs pydub in /home/<user>/.local/lib/python2.7/

So when I run my script
python3 myScript.py
it tells me
ModuleNotFoundError: No module named 'pydub'

How do I get pip to install pydub for 3.x rather than 2.7?

antimatter
  • 63
  • 1
  • 10

1 Answers1

1

Use pip3 install xxx, or better yet, python3 -m pip install xxx. The problem here is that by default pip is aliased to python2's installation.

Jason Rebelo Neves
  • 1,131
  • 10
  • 20