• 首页
  • 资讯
  • 专家
  • 话题
  • 问题库
  • 礼品商店
  • 分类
    • 新闻资讯
    • 娱乐八卦
    • 3C数码
    • 医疗健康
    • 健康养生
    • 云盘解析
    首页   ›   正文

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

2021-12-07 11:24
1691  1
IT网络 未结
关注
憨厚的小仓
憨厚的小仓 2021-12-07 11:24
相关标签:
1条回答
  • 树友8qk1oi
    2021-12-07 12:02

    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 PyPI Once an environment has been created, you may wish to activate it, e.g. by sourcing an activate script in its bin directory.

    0
 看不清?
提交回复

如本站内容“对您有用”,欢迎随意打赏,让我们持续更新!

打赏
游客
登录后展示个人签名去登录
0文章 0问题 0回答 0点赞
写作
发布问题
发布文章
关注微信
加QQ群
随机文章
苹果App Store开发者关系主管已退休 系乔布斯2001年招入
2021-12-06 19:47:44
SSD 1年来首次转跌 1TB TLC硬盘交易价降至240元
2021-12-11 09:04:45
高纤维食物有哪些水果 高纤维食物有什么好处
2022-02-19 08:45:09
婴儿出生46小时被偷 民警辗转千里寻回
2021-12-05 22:20:30
安全期会怀孕吗
2022-03-30 20:20:02
杭州一家六口提新车被隔离4S店 当事人回应:积极配合不添麻烦
2022-02-19 08:53:05
黄豆的营养价值及功效与作用 吃黄豆的好处
2021-12-05 23:10:35
首款支持开盖散热的手机!ROG 6天玑9000+版跑分将超过骁龙8+
2022-12-23 21:27:50
首发2亿像素!moto X30 Pro今晚发布:比小米12S Pro更大底
2022-08-23 09:53:40
麦片具有什么营养价值 燕麦的功效有哪些
2022-03-06 07:15:03
飞机紧急迫降时会发生什么?拍成电影都不用改剧本
2022-02-19 09:05:36
5G商用三周年!今年5G网络建设已提前超额完成:你用上了吗
2023-02-19 09:34:18
普洱茶什么时候喝 普洱茶的功效与作用
2021-12-05 00:08:10
梨不能和什么一起吃 梨与什么食物相克
2021-12-04 23:51:41
细菌性阴道炎的症状
2022-04-03 08:45:54
热门标签
智能手机为何越卖越贵 马斯克加速抢滩一文了解脑机接口 凛冬将至苹果还能靠iphone支撑多久 新野蛮人马斯克 630wrtx 4090解锁极限功耗 马斯克没有打价格战的基因 ipad营收锐减卖不动了 小米13 lite现身小米13家族最便宜版本 感受守护网络安全的黑科技app 感受守护网络安全的黑科技 新一代影像性能旗舰努比亚z50官宣 黑亚当纽约首映式 黑亚当创下巨石强森个人最好成绩 超人归来电影免费观看 超人回归dc 超人回归 贝鲁奇谈贝鲁奇 辐射剧集首张剧照 大超与白狼不可兼得 用废品造的iphone你会买单吗
Copyright © 2025 网站备案号: 闽ICP备2020021158号-10 本站所有信息来自于互联网或网友上传,如有侵权,敬请来信联系我们,1494738443@qq.com 我们立刻删除。
responsive_hankin 主题. Designed by 极速问答社区
赞赏作者

请通过微信、支付宝 APP 扫一扫

感谢您对作者的支持!

 支付宝 微信支付