为什么python中运行代码python-mvenv会报invalidsyntax

360U3337345150 |浏览696次
收藏|2021/11/01 09:28

满意回答

2021/11/01 09:47

python -m venv后面要跟参数的,如看帮助的话python -m venv -h结果为(不能上图了)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, --help show this help message and exit --system-site-packages Give the virtual environment access to the system site-packages dir. --symlinks Try to use symlinks rather than copies, when symlinks are not the default for the platform. --copies Try 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 environment creation. --upgrade Upgrade the environment directory to use this version of Python, assuming Python has been upgraded 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-deps Upgrade 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.

whoami1978

其他回答(0)
0人关注该问题
+1

 加载中...