当我尝试创建虚拟环境时,返回非零退出状态 101 并给出错误 [英] Returned non zero exit status 101 giving an error when I tried create a Virtual environment

查看:32
本文介绍了当我尝试创建虚拟环境时,返回非零退出状态 101 并给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在命令提示符下运行 py -3 -m venv venv 以创建虚拟环境时,它失败了.

When I run py -3 -m venv venv on command prompt to create a virtual environment it fails.

"Error: Command '['C:\\Users\\Guest\\Desktop\\Python Web 
 App\\venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default- 
 pip']' returned non-zero exit status 101. 

如何解决这个问题?我已经安装了最新的 Python 版本.我在为 Web 开发设置 Flask 的路上被困在这里.

How to fix this? I've installed the latest Python Version. I'm stuck here on my way to set up Flask for web development.

推荐答案

我遇到了这个问题 - 解决方法是卸载 Python 并使用 Install for all users 选项重新安装它.请参阅我更长的答案:https://stackoverflow.com/a/62207756/11308690

I had this problem - the workaround was to uninstall Python and reinstall it with the Install for all users option. See my longer answer: https://stackoverflow.com/a/62207756/11308690

这篇关于当我尝试创建虚拟环境时,返回非零退出状态 101 并给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆