Python Apphost - Windows - aspire start failes in second run
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
When running the aspire start command for a second time (or aspire restore), the creation of the .venv fails due to the .venv already existing.
### Expected Behavior
Work seamlessly
### Steps To Reproduce
Create a python apphost, run it twice or restore it twice on windows.
### Exceptions (if any)
error: Failed to create virtual environment
Caused by: Failed to create Python executable link at .venv\Scripts\python.exe from C:\....
Caused by: The file exists. (os error 80)
My project is on a different drive btw.
### Aspire doctor output
_No response_
### Anything else?
Python 3.14.2 managed by uv
uv version 0.10.2
Windows 11
Aspire 13.3.0-preview.1.26226.6
.NET 10.0.107
Contributor guide
Assessment
This issue has not been assessed yet.