ramonvasquez
ramonvasquez

Reputation: 37

Can't Import Libraries in Visual Studio Code

I'm using Python on VS Code and I need to use the library python-Levenshtein. I've already installed it with the pip3 install command, but somehow this library won't appear in the drop down after typing import (nor I am able to use it). If I check the pip list it is listed. I selected the interpreter on Python 3.8.5 64-bit; I'm using Ubuntu 20.04 and have everything (VSC, system) up to date. I even rebooted hoping for the drop down to show the library. Still nothing. Any clues?

Upvotes: 0

Views: 7310

Answers (1)

ramonvasquez
ramonvasquez

Reputation: 37

I uninstalled the library and then reinstalled it with sudo, and now it works perfectly. Thanks to this post: https://stackoverflow.com/a/57324830/11020145

Upvotes: 1

Related Questions