First install the package using pip install yourpkgname, Then you can run your code from terminal Note: check the version of pip , if upgrade available then first upgrade pip using pip install --upgrade pip and then use pip to install your pkg. Sometime because of older version of pip even after doing the installation of pkg this 'module not found' error come