
当尝试在 ubuntu 上使用 venv 和 python 3 创建 virtulenv 时,它不会创建激活脚本。它以错误 1 持续退出。 关注 SO 上的文档和其他帖子,例如https://stackoverflow.com/a/19848770 我试过用两种不同的方式创建它。 sayth@sayth-TravelMate-5740G:~/scripts$ python3 -m venv test4 Error: Command '['/home/sayth/scripts/test4/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 sayth@sayth-TravelMate-5740G:~/scripts$ source test4/bin/activate bash: test4/bin/activate: No such file or directory sayth@sayth-TravelMate-5740G:~/scripts$ ls test4/bin/ python python3 或者 sayth@sayth-TravelMate-5740G:~/scripts$ pyvenv-3.4 test5 Error: Command '['/home/sayth/scripts/test5/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 sayth@sayth-TravelMate-5740G:~/scripts$ ls test5/bin/ python python3 python3.4 我怎样才能让它完全创建一个venv? 如果我按照以下方式进行操作但仍然没有成功,不确定问题是什么? sayth@sayth-TravelMate-5740G:~/scripts$ python3 -Im venv panda3 Error: Command '['/home/sayth/scripts/panda3/bin/python3', '-I

0

3
卓越助教

2022-02-07 14:59:57

0
0/300
请先 登录 后发表评论~