Search code examples
pythondjangoamadeus

Unable to import installed package in Python


I'm attempting to use the following Python package:

https://github.com/amadeus4dev/amadeus-python

I have installed it as a global package via the pip3 install amadeus command and can see that it has been installed correctly, as reported by pip3 list

Despite it being installed, I am receiving the following error when trying to import it into a Django view:

Unable to import 'amadeus'pylint(import-error)

Troubleshooting

  • Uninstalled the package and reinstalled using sudo pip3 install amadeus
  • Uninstalled the package and reinstalled using python3 -m pip install amadeus
  • Checked that the package has been installed within a directory in my system path.

I'm currently all out of ideas for why it won't work for me and would be grateful if somebody had any ideas?

Thank you!


Solution

  • I managed to resolve this issue by reinstalling Python onto my Linux WSL by following the instructions here:

    https://learn.microsoft.com/en-us/windows/wsl/install-win10