升级到 Pop OS 21.04 后,我无法为 python 3.8 创建任何虚拟环境。出现以下错误 -
sudo apt-get install python3.8-venv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3.8-venv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3.8-venv' has no installation candidate
我已经尝试过添加 deadsnakes 存储库(博客文章 https://dev.to/mortoray/how-to-install-python-3-8-on-ubuntu-1bp4)。不幸的是,这没有帮助。另外,我还发现了以下信息——
apt show python3.8
Package: python3.8
Version: 3.8.10-0ubuntu1~20.10.1
Status: install ok installed
Priority: important
Section: python
Maintainer: Ubuntu Core Developers <[email protected] /cdn-cgi/l/email-protection>
Original-Maintainer: Matthias Klose <[email protected] /cdn-cgi/l/email-protection>
Installed-Size: 521 kB
Depends: python3.8-minimal (= 3.8.10-0ubuntu1~20.10.1), libpython3.8-stdlib (= 3.8.10-0ubuntu1~20.10.1), mime-support
Suggests: python3.8-venv, python3.8-doc, binutils
Breaks: python3-all (<< 3.6.5~rc1-1), python3-dev (<< 3.6.5~rc1-1), python3-venv (<< 3.6.5-2)
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Interactive high-level object-oriented language (version 3.8)
Python is a high-level, interactive, object-oriented language. Its 3.8 version
includes an extensive class library with lots of goodies for
network programming, system administration, sounds and graphics.
The Apt-Sources
项目对我来说似乎有点奇怪。
更新后的系统中默认的python版本是3.9.5。
知道如何解决这个问题吗?