gpt4 book ai didi

python - 接收 "failed to query"代码 13 : Access is denied when using virtualenv -p on my windows system

转载 作者:行者123 更新时间:2023-12-03 15:29:41 25 4
gpt4 key购买 nike

我的 Windows 系统上安装了两个版本的 Python。 3.7 安装在 C:\Python37 中,3.8 安装在 Python 3.8 中。

我的 PATH 变量包括 Python 3.7 可执行文件。

当我尝试运行 'virtualenv -p C:\Python38 ProjectFolder' 时,出现以下错误:

RuntimeError: failed to query C:\Python38 with code 13 err: 'Access is denied'

如果我指定 C:\Python37 也是如此。这不是应该使用指定的 Python 二进制文件创建一个 virutalenv 吗?我究竟做错了什么?
提前致谢!

最佳答案

virtualenv -p C:\Python38\python.exe ProjectFolder

IE。点 -p到 python 可执行文件,而不是目录。

关于python - 接收 "failed to query"代码 13 : Access is denied when using virtualenv -p on my windows system,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61123685/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com