Windows Python 虚拟环境配置

查找系统中的Python路径

where python

D:\msys64\mingw64\bin\python.exe
D:\Program Files\Python313\python.exe
C:\Users\user\AppData\Local\Microsoft\WindowsApps\python.exe

创建Python虚拟环境

C:\Users\user>d:
D:\>cd D:\Program Files\Python313
D:\Program Files\Python313>python.exe -m venv D:\workspace\SAM\venvs\py313env

查看虚拟环境中Python版本

D:\Program Files\Python313>cd D:\workspace\SAM\venvs\py313env
D:\workspace\SAM\venvs\py313env>python --version
Python 3.9.13
posted @ 2025-11-29 09:13  WorldZhu  阅读(0)  评论(0)    收藏  举报