Python is available as an embeddable package (also known as the "embeddable zip file").
Tcl/tk (including all dependants, such as Idle), pip and the Python documentation are not included.
venv is not mentioned, but also seems to be missing:
C:\EmbeddablePython> python -m venv myenv
No module named venv
Is there a way to install it?
There is a way to install pip: pip with embedded python
But pip install venv fails:
ERROR: Could not find a version that satisfies the requirement venv (from versions: none)
ERROR: No matching distribution found for venv
pip install virtualenv works, but virtualenv myenv fails:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\EmbeddablePython\\DLLs'
Is there a way to get venv or virtualenv working with the embeddable package of Python?
no module named venverror?python venv myenvgives theno module named venverror.pip install venvfails becausevenvis a built-in package, not a third party one hosted on pypi. I'm not sure whypython -m venv myenvfails, though. Apparently it isn't included in the distribution. I assume because it isn't needed if you use the embeddable python as intended.