You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before you start, make sure you only have a single version of Python installed.
91
+
92
+
If you are unsure goto the terminal and run:
93
+
```shell
94
+
python --version
95
+
```
96
+
97
+
If you see `Python 2.x.x` quit python by typing `quit()` and run:
98
+
```shell
99
+
python3 --version
100
+
```
88
101
89
-
<LinkCardtitle="Download & install VS Code"href="https://code.visualstudio.com/download"description="code.visualstudio.com/download" />
102
+
If you see `Python 3.x.x` you are good to go. If not, you need to install Python 3.
90
103
91
-
<LinkCardtitle="Download & install the Python extension for VS Code"href="https://marketplace.visualstudio.com/items?itemName=ms-python.python"description="marketplace.visualstudio.com/items?itemName=ms-python.python" />
104
+
**Note**: Certain versions of Windows `python` and `python3` might open the Microsoft Store. If that happens, press `GET` and install Python 3 from the store.
105
+
</Aside>
92
106
93
-
<LinkCardtitle="Download & install the Thunder Client extension"href="https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client"description="marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client" />
107
+
Installing Python is straightforward. You can download the latest version from the official Python website.
94
108
95
-
<LinkCardtitle="[Optional] Download & install Code for IBM i"href="https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.ibm-i-development-pack"description="marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.ibm-i-development-pack" />
109
+
When you first install Python, make sure to check the box that says **"Add Python to PATH"**to make it easier to run Python commands from the terminal.
<LinkCardtitle="Download & install VS Code"href="https://code.visualstudio.com/download"description="code.visualstudio.com/download" />
117
+
</Card>
118
+
<Card>
119
+
<LinkCardtitle="Download & install the Python extension for VS Code"href="https://marketplace.visualstudio.com/items?itemName=ms-python.python"description="marketplace.visualstudio.com/items?itemName=ms-python.python" />
120
+
</Card>
121
+
<Card>
122
+
<LinkCardtitle="Download & install the Thunder Client extension"href="https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client"description="marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client" />
123
+
</Card>
124
+
<Card>
125
+
<LinkCardtitle="[Optional] Download & install Code for IBM i"href="https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.ibm-i-development-pack"description="marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.ibm-i-development-pack" />
126
+
</Card>
127
+
</CardGrid>
97
128
<Asidetype="note">
98
129
In this guide, we use `python3` and `pip3` commands. Depending on your system configuration, `python` might refer to Python 2. If that's the case, you need to use `python3` and `pip3` instead.
99
130
You can get more specific by using `python3.6` or `python3.9` if you have multiple versions installed.
@@ -102,11 +133,11 @@ You can get more specific by using `python3.6` or `python3.9` if you have multip
102
133
### Project Setup
103
134
<CardGridstagger>
104
135
<Cardtitle="Step #1"icon="add-document">
105
-
Create a new folder for your project.
136
+
Create a new folder for your project. This can be a folder anywhere on your computer.
106
137
</Card>
107
138
108
139
<Cardtitle="Step #2"icon="open-book">
109
-
Open Visual Studio Code and select "Open Folder" to open your project folder.
140
+
Open Visual Studio Code and select `FILE` and "Open Folder" to open your project folder.
110
141
</Card>
111
142
112
143
<Cardtitle="Step #3"icon="forward-slash">
@@ -119,24 +150,29 @@ Create a new virtual environment:
119
150
python3 -m venv --system-site-packages venv
120
151
```
121
152
<Asidetype="note">
122
-
Virtual environments are used to manage dependencies for your projects.
153
+
Virtual environments are used to manage dependencies for your projects. All your `PIP` installs will be isolated to this environment.
123
154
</Aside>
124
155
</Card>
125
156
126
157
<Cardtitle="Step #5"icon="rocket">
127
158
Activate your virtual environment:
128
-
- On PASE (IBM i):
159
+
- On Windows:
129
160
```shell
130
-
. venv/bin/activate
161
+
venv\Scripts\activate
131
162
```
132
163
- On macOS/Linux:
133
164
```shell
134
165
source venv/bin/activate
135
166
```
136
-
- On Windows:
167
+
- On PASE (IBM i):
137
168
```shell
138
-
venv\Scripts\activate
169
+
. venv/bin/activate
139
170
```
171
+
<Asidetype="note">
172
+
If you see `(venv)` in your terminal prompt, you have successfully activated your virtual environment.
173
+
174
+
You will need to activate your virtual environment every time you open a new terminal.
0 commit comments