How to detect your Python library path from docker in your VS Code
Shaikh Al Amin

Shaikh Al Amin @shaikhalamin

About: Senior Software Engineer | Frontend Specialist | Laravel, Express,React

Location:
Dhaka
Joined:
Oct 9, 2020

How to detect your Python library path from docker in your VS Code

Publish Date: Nov 5 '24
0 0

Vs Code plugins dependencies:

1. Install python plugin from Microsoft
2. Install pylance plugin from Microsoft
3. Install Black Formatter plugin from Microsoft

Enter fullscreen mode Exit fullscreen mode

Create a virtual env inside your project root.

python3.10 -m venv venv
Enter fullscreen mode Exit fullscreen mode

Activate the venv.

source venv/bin/activate
Enter fullscreen mode Exit fullscreen mode

Install the dependency from requirments.txt

pip install -r requirments.txt

Select python env from venv for VS Code interpreter

You can set the interpreter by pressing

Ctrl+Shift+P, searching for Python: Select Interpreter,
Enter fullscreen mode Exit fullscreen mode

and then choosing the virtual environment in your project root

(.venv/bin/python or similar).
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment