OpenHarmony开发者论坛

标题: ubuntu20.04安装deveco device tool报pyhton3.8-venv无法定位,使用sudo apt-get install python3.8-venv命令依然无法解决 [打印本页]

作者: pengbiao    时间: 2024-6-5 22:18
标题: ubuntu20.04安装deveco device tool报pyhton3.8-venv无法定位,使用sudo apt-get install python3.8-venv命令依然无法解决
[md]全新安装ubuntu20.04版本,按照官网说明[Ubuntu环境搭建](https://docs.openharmony.cn/page ... t-ide-env-ubuntu.md)步骤 配置好了环境,安装4.0版本deveco device tool时,报错,如下


Package python3.8 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' has no installation candidate
Package: python3.8
State: not a real package (virtual)
N: Can't select candidate version from package python3.8 as it has no candidate
N: Can't select versions from package 'python3.8' as it is purely virtual
N: No packages found
2024-06-05 00:43:13 - INFO - python3.8 is successfully installed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
systemd-hwe-hwdb
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 455 not upgraded.
Need to get 0 B/139 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 214151 files and directories currently installed.)
Preparing to unpack .../python3-distutils\_3.10.8-1~22.04\_all.deb ...
Unpacking python3-distutils (3.10.8-1~22.04) over (3.10.8-1~22.04) ...
Setting up python3-distutils (3.10.8-1~22.04) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.4).
The following package was automatically installed and is no longer required:
systemd-hwe-hwdb
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 455 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python-venv
2024-06-05 00:43:21 - ERROR - python-venv install failed.

VirtualBox:\~/Downloads\$ sudo apt-get install python3.8-venv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3.8-venv
E: Couldn't find any package by glob 'python3.8-venv'
E: Couldn't find any package by regex 'python3.8-venv'

请问如何解决,为什么会出现跟虚拟机无关的E盘信息呢
[/md]
作者: 深开鸿_王石    时间: 2024-6-12 09:45
你直接命令行运行python3.8能找到不?




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5