labeam.blogg.se

Install python packages in visual studio code
Install python packages in visual studio code






install python packages in visual studio code

Start by creating the new environment in the VS Code terminal: Let's say I start with the Tutorial environment active, and want to create one called ForeignHoliday (we can but dream).

install python packages in visual studio code

Here's what I reckon is the easiest way to create and activate a Python virtual environment in Visual Studio code. OK, thanks to Jason/Steven I have finally got the hang of what you should be simple, but isn't. This can't be right, although it does work - I can now see the installed package: To get it in my new virtual environment, I seem to have to include the full path to the Python interpreter:

install python packages in visual studio code

However, this is going in my default Python location. I then install a package (I've chosen requests more or less at random): I then choose to use the Python interpreter in this new virtual environment (I can't quite see why I have to do this - surely this should happen as part of the activation process - but I can live with it):Īt the bottom left corner of my screen, I get the reassuring fact that I'm using the right Python interpreter: So first I create a new virtual environment: Here's my sequence of steps, and the problem I then have - I wonder if anyone could kindly tell me where I've gone wrong? Or do I really need to include the full Python path? Although I'm enjoying developing in Python in Visual Code, I'm finding managing virtual environments and packages frustrating, and particularly am struggling with installing packages in the right place.








Install python packages in visual studio code