创建无需管理员python的VENV

发布于 2025-02-13 20:14:03 字数 730 浏览 0 评论 0原文

当我运行python -m venv \ pathtosyvenv

错误:命令'['c:\\ users \\ user \\ user \\ managessql \\ scripts \\ scripts \\ python.exe','-im' ,“ susepip',' - upgrade',' - 默认pip']”返回的非零退出状态1。

一个类似的帖子引用了Windows更新作为罪魁祸首。 通过为所有用户安装启动器来解决

fix > VENV出口后的样子是:

Include

Lib
    site-packages
Scripts
    python.exe
    pythonw.exe
pyvenv.cfg
    home = C:\Users\myusername\AppData\Local\Programs\Python\Python310
    include-system-site-packages = false
    version = 3.10.4

我无法在我的环境中安装python。还有另一个修复吗?

When I run python -m venv \pathtomyvenv

Error: Command '['C:\\Users\\user\\manageSQL\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

A similar post cites a Windows update as the culprit.
Fix by installing launcher for all users

Here is what the venv looks like after exit:

Include

Lib
    site-packages
Scripts
    python.exe
    pythonw.exe
pyvenv.cfg
    home = C:\Users\myusername\AppData\Local\Programs\Python\Python310
    include-system-site-packages = false
    version = 3.10.4

I cannot install python with admin privilege's in my environment. Is there another fix for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乖乖兔^ω^ 2025-02-20 20:14:03

我手动删除了我的特权允许的系统上的所有Python。我无法在:

c:\ users \ username \ appdata \ local \ program \ program \ python中删除Python文件夹,但确实删除了AppData之外的另一个Python安装。

删除的Python文件夹在:c:\ users \ username \ appdata \ roaming \ roaming \ microsoft \ windows \ windows \ windows \ start菜单\ program \ program

我现在可以创建VENV并通过导入密钥来解决一个问题库(dask)。

我相信重复的python安装使启动器感到困惑,但我不确定。

I manually deleted all the python on my system that my privileges would allow. I could not delete the Python folder in:

C:\Users\username\AppData\Local\Programs\Python but did delete another python installation outside of AppData.

The removed python folder was in: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

I can now create the venv and resolved an issue with importing a key library (dask).

I believe the duplicate python installation was confusing the launcher but I cannot be sure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文