创建无需管理员python的VENV
当我运行python -m venv \ pathtosyvenv
错误:命令'['c:\\ users \\ user \\ user \\ managessql \\ scripts \\ scripts \\ python.exe','-im' ,“ susepip',' - upgrade',' - 默认pip']”返回的非零退出状态1。
一个类似的帖子引用了Windows更新作为罪魁祸首。 通过为所有用户安装启动器来解决
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我手动删除了我的特权允许的系统上的所有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.