我正在使用 chromebook,使用 Debian。我需要运行终端命令python -m venv env,但是当我使用它时,我收到错误
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/home/jacob/env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
Run Code Online (Sandbox Code Playgroud)
所以我跑apt-get install python3-venv
但出现错误
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: …Run Code Online (Sandbox Code Playgroud)