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
Copy file name to clipboardExpand all lines: getting-started-hedera-native-developers/create-a-token.md
+243Lines changed: 243 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,85 @@ go mod tidy
165
165
```
166
166
{% endcode %}
167
167
{% endtab %}
168
+
169
+
{% tab title="Python" %}
170
+
**Before you start:** Ensure you have Python 3.10+ installed on your machine. Run this command to verify.
171
+
172
+
```bash
173
+
python --version
174
+
```
175
+
176
+
If the `python --version` command is not found or shows a version lower than 3.10, install or upgrade Python from [Python Install](https://www.python.org/downloads/).
177
+
178
+
**Note:** On some systems, you may need to use `python3` instead of `python` for initial setup commands. If `python --version` doesn't work, try `python3 --version` and use `python3` for the virtual environment creation. After activating the virtual environment, always use `python` for all commands.
179
+
180
+
Open your terminal and create a working directory for your Hedera project. Then navigate into the new directory:
181
+
182
+
```bash
183
+
mkdir hedera-examples &&cd hedera-examples
184
+
```
185
+
186
+
**Verify Python and pip:** Ensure you have Python 3.10+ and pip installed on your machine. Run these commands to check:
187
+
188
+
```bash
189
+
python --version
190
+
```
191
+
192
+
```bash
193
+
python -m pip --version
194
+
```
195
+
196
+
Create a virtual environment to isolate your project dependencies (Python best practice):
197
+
198
+
```bash
199
+
python -m venv .venv
200
+
```
201
+
202
+
Activate the virtual environment to use the isolated Python installation:
203
+
204
+
{% tabs %}
205
+
{% tab title="Mac/Linux" %}
206
+
```bash
207
+
source .venv/bin/activate
208
+
```
209
+
{% endtab %}
210
+
211
+
{% tab title="Windows" %}
212
+
```bash
213
+
.venv\Scripts\activate
214
+
```
215
+
{% endtab %}
216
+
{% endtabs %}
217
+
218
+
Upgrade pip to ensure you have the latest package installer (recommended):
219
+
220
+
```bash
221
+
python -m pip install --upgrade pip
222
+
```
223
+
224
+
Install the [Python SDK](https://github.com/hiero-ledger/hiero-sdk-python):
225
+
226
+
```bash
227
+
python -m pip install hiero_sdk_python
228
+
```
229
+
230
+
Create a file named `CreateTokenDemo.py` and add the following imports:
0 commit comments