DEV Community

Shaikh Al Amin
Shaikh Al Amin

Posted on

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

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

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay