Skip to content

Commit bec1acb

Browse files
authored
update docs on PYTHON_PATH + windows worker setup (windmill-labs#858)
1 parent 4e335b6 commit bec1acb

File tree

2 files changed

+8
-37
lines changed

2 files changed

+8
-37
lines changed

docs/core_concepts/47_environment_variables/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Environment variables are used to configure the behavior of scripts and services
2222
| SLACK_SIGNING_SECRET | None | The signing secret of your Slack app. See [Slack documentation](https://api.slack.com/authentication/verifying-requests-from-slack) | Server |
2323
| COOKIE_DOMAIN | None | The domain of the cookie. If not set, the cookie will be set by the browser based on the full origin | Server |
2424
| DENO_PATH | /usr/bin/deno | The path to the deno binary. | Worker |
25-
| PYTHON_PATH | /usr/local/bin/python3 | The path to the python binary. | Worker |
25+
| PYTHON_PATH (not recommended) | /usr/local/bin/python3 | The path to the python binary. If used [selecting python version](http://localhost:3000/docs/getting_started/scripts_quickstart/python#select-python-version) will not work and scripts will be executed using provided python. | Worker |
2626
| GO_PATH | /usr/bin/go | The path to the go binary. | Worker |
2727
| GOPRIVATE | | The GOPRIVATE env variable to use private go modules | Worker |
2828
| GOPROXY | | The GOPROXY env variable to use | Worker |
@@ -102,4 +102,4 @@ From a [worker group](../9_worker_groups/index.mdx), you can add static and dyna
102102
description="Worker Groups allow users to run scripts and flows on different machines with varying specifications."
103103
href="/docs/core_concepts/worker_groups"
104104
/>
105-
</div>
105+
</div>

docs/misc/17_windows_workers/index.mdx

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -37,40 +37,11 @@ After the basic setup, follow these steps for each language your worker should s
3737

3838
### Python executor
3939

40-
1. **Install Python**: [Download Python](https://python.org/downloads).
41-
- **Note**: When installing, make sure to check the box to add Python to the `PATH`.
42-
43-
2. **Verify Python installation**:
44-
- Open a new PowerShell window and type `python`. You should see output similar to the following:
45-
```powershell
46-
PS C:\Users\Alex> python
47-
Python 3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)] on win32
48-
Type "help", "copyright", "credits" or "license" for more information.
49-
>>>
50-
```
51-
52-
3. **Install `uv`**:
53-
- Run the following command in PowerShell:
54-
```powershell
55-
pip install uv
56-
```
57-
58-
4. **Locate Python installation**:
59-
- Find where Python is installed by running:
60-
```powershell
61-
where.exe python
62-
```
63-
Example output:
64-
```plaintext
65-
C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe
66-
```
67-
68-
5. **Set environment variables**:
69-
- Add the following environment variables (replace the placeholders with your specific values):
70-
```powershell
71-
# Replace these variables with your specific configuration
72-
$env:PYTHON_PATH="C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe"
73-
```
40+
1. **Install uv**:
41+
```powershell
42+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
43+
```
44+
You can also check other installation methods in uv`s [official documentation](https://docs.astral.sh/uv/getting-started/installation/).
7445

7546
### Bun executor
7647

@@ -116,4 +87,4 @@ After the basic setup, follow these steps for each language your worker should s
11687
```powershell
11788
# Replace these variables with your specific configuration
11889
$env:POWERSHELL_PATH="C:\Program Files\PowerShell\7\pwsh.exe"
119-
```
90+
```

0 commit comments

Comments
 (0)