(Aug-07-2023, 06:00 PM)Adi44 Wrote: I am still confused about ow to create a virtual environment, i open the CMD window as suggested, and do not type "py" ?Just use
py
to generate the environment.py -m venv photo_envThen the rest will be the same.
If Path is correct
python
and py
will work the same.Test with:
G:\div_code λ python -V Python 3.11.3 G:\div_code λ py -V Python 3.11.3 G:\div_code λ pip -V pip 23.1.2 from C:\python311\Lib\site-packages\pip (python 3.11)
py
will always work as it dos not use OS environment path.Virtualenv is 3-party libayr that need to install .
But is no not needed.
Quote:Since Python 3.3, a subset of it has been integrated into the standard library under the venv
module.