【发布时间】:2021-07-01 13:44:52
【问题描述】:
升级到 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 repo (blog post)。不幸的是,它没有帮助。另外,我发现了以下信息-
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 <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
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.
Apt-Sources 项目对我来说似乎有点奇怪。
更新系统默认python版本为3.9.5。
知道如何解决这个问题吗?
【问题讨论】:
标签: python python-3.x python-3.8 python-venv