'Visual Studio Code Code Completion With 3rd Party Python Libraries
How to get code completion running for 3rd party libraries (specifically beautifulsoup4 and urllib3) on VSCode?
What I'm trying:
First, I searched for the location of the libraries in terminal:
python3
>>>import bs4, urllib3
>>>bs4.__file__
'/usr/lib/python3/dist-packages/bs4/__init__.py'
and the same for urllib3. I then put those into my settings.json:
"python.autoComplete.extraPaths": [
"/usr/lib/python3/dist-packages/urllib3/__init__.py",
"/usr/lib/python3/dist-packages/urllib3/",
"/usr/lib/python3/dist-packages/bs4/__init__.py",
"/usr/lib/python3/dist-packages/bs4/"
]
(At first I had the path with the __init__.py part, but I figured that might've been my problem so I got rid of the __init__ to no avail).
So does anyone have any idea what I'm doing wrong/how to fix this? Keep in mind I'm running Ubuntu 16.04LTS.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
