Developing Python On Windows
Description:
As an alternative to developing with WSL I found it much easier to just install Python on Windows and use vscode. Maybe when I up my skills I will go back to using it with WSL, but here is all I had to do to start developing with Python on Windows.
To Resolve:
-
Install Python 3.9 windows installer for python.org. During installation, choose to add to path.
-
In vscode, install
python
extension. -
Upgrade pip:
1 2
cd "C:\Program Files\Python39\" ./python.exe -m pip install --upgrade pip
-
Then, if you have a file you want to format, it will prompt you to install
pep8
. Just select “yes” and it will install no hassles (unlike WSL where I had to fight it for some reason). -
If you want to install packages on your system, just use
pip
. For example, forazure-functions
I did:- Install by
./python.exe -m pip install azure-functions
- then type:
./python.exe
- now that you are in python, just type
import azure.functions
and start using their module
- Install by
Comments