Skip to content
Discussion options

You must be logged in to vote

Ok, a few things to unpack here,

.FromFolder(virtual_python_env, "3.12") is for specialized Python builds on Windows and probably not what you want. If you downloaded Python from python.org, you want the Windows Installer Locator
If you installed it from the Windows Store, you want the Windows Store Locator.

Second, .WithVirtualEnvironment() has a second parameter to set whether or not to "ensure the virtual environment exists" (create it).

Set that to false:

.WithVirtualEnvironment(virtual_python_env, false)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@tonybaloney
Comment options

@Nick346-surf
Comment options

@Nick346-surf
Comment options

Answer selected by Nick346-surf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants