Make Visual Studio Code autocomplete for python external libraries

Memo after studying Python

If I was writing python in vscode, the external library would not be complemented and development would be inefficient. ** I want to be able to complement external libraries as well. ** **

Solution

It is OK if you describe the path where the library is stored in setting.json

Check the library path

pip3 install library name

If installed,

Requirement already satisfied:Library name in/usr/local/lib/python3.8/site-packages (0.6.3)

Should be displayed as

Check the files stored in this path for the time being

ls /usr/local/lib/python3.8/site-packages

If the library list is displayed, there seems to be no problem

Describe the path in setting.json

Open setting.json

coomand + shit + p

Enter "setting json" in the command palette ↓ Open Open Setting (JSON)

Add path to setting.json

"python.autoComplete.extraPaths": ["/usr/local/lib/python3.8/site-packages "]

If you save it with this, you can complete the external library and jump to doc.

Recommended Posts

Make Visual Studio Code autocomplete for python external libraries
Settings for Python coding in Visual Studio Code
[Visual Studio Code] [Python] Tasks.json + problemMatcher settings for Python
Enable the virtualenv Python virtual environment for Visual Studio Code
Installation of Visual studio code and installation of python
Python Tools for Visual Studio Installation Guide
Build Python development environment with Visual Studio Code
Django with Python Tools 2.2 for Visual Studio (PTVS 2.2)
I customized it with Visual Studio Code (mainly for python), so I will summarize it
Python development environment with Windows + Anaconda3 + Visual Studio Code
Python development environment with Windows + Python + PipEnv + Visual Studio Code
AWS SDK for Python (Boto3) development in Visual Studio 2017
Enable intellisense for external libraries with Pipenv + VS Code
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Debugging
Python code memo for yourself
Install external libraries with Python
Python development in Visual Studio 2017
[Python] Sample code for Python grammar
Python development in Visual Studio
Set up a Python development environment with Visual Studio Code
Do something like a Python interpreter in Visual Studio Code
Build Python3 for Windows 10 on ARM with Visual Studio 2019 (x86) on Windows 10 on ARM
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Environment construction
[Visual Studio Code] [Python] [Windows] Support for garbled Japanese characters in Python in VS Code task / debug output
Check for external commands in python
Python> I made a test code for my own external file
Try to create a python environment with Visual Studio Code & WSL
Visual Studio Code may be good
About the procedure for linking Visual Studio Code for Windows and WSL
Try it when Visual Studio Code can't load a Python module
A memo for those who use Python in Visual Studio (me)
Build an environment to execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people)
Create a Python development environment on Windows (Visual Studio Code remote WSL).
From re-environment construction of Python to graph drawing (on visual studio code)
6 Python libraries for faster development and debugging
Make Qt for Python app a desktop app
python> coding guide> PEP 0008 --Style Guide for Python Code
A tool for easily entering Python code
Run Python in C ++ on Visual Studio 2017
R code compatible sheet for Python users
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
Highlight Python user function calls in Visual Studio Code (vscode) Default Dark + theme
A note I was addicted to when running Python with Visual Studio Code
Run Python YOLOv3 in C ++ on Visual Studio 2017
Time when terminal disappears in Visual Studio Code
Code for checking the operation of Python Matplotlib
I want to make C ++ code from Python code!
Let's make a module for Python using SWIG
How to make Python faster for beginners [numpy]
Install Python and libraries for Python on MacOS Catalina
Make your Python environment "easy" with VS Code
About Python external module import <For super beginners>