為什么python中運(yùn)行代碼python-mvenv會(huì)報(bào)invalidsyntax
python -m venv后面要跟參數(shù)的,,如看幫助的話
python -m venv -h
結(jié)果為(不能上圖了)
usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade] [--without-pip][--prompt PROMPT] [--upgrade-deps]ENV_DIR [ENV_DIR ...]Creates virtual Python environments in one or more target directories.positional arguments:ENV_DIR A directory to create the environment in.optional arguments:-h, --helpshow this help message and exit--system-site-packagesGive the virtual environment access to the system site-packages dir.--symlinksTry to use symlinks rather than copies, when symlinks are not the default for the platform.--copiesTry to use copies rather than symlinks, even when symlinks are the default for the platform.--clear Delete the contents of the environment directory if it already exists, before environmentcreation.--upgrade Upgrade the environment directory to use this version of Python, assuming Python has beenupgraded in-place.--without-pip Skips installing or upgrading pip in the virtual environment (pip is bootstrapped by default)--prompt PROMPT Provides an alternative prompt prefix for this environment.--upgrade-depsUpgrade core dependencies: pip setuptools to the latest version in PyPIOnce an environment has been created, you may wish to activate it, e.g. by sourcing an activate script in its bindirectory.
Tags:會(huì)報(bào)代碼python