我曾经让 nanovna-saver 可执行文件在版本 18 左右运行。我将 Ubuntu 升级到版本 22.04。从那时起,Nanaovna-saver exe 就无法运行了。
我正在尝试按照以下说明重新加载 nanovna-saver此链接。当我运行第一个命令时出现此错误。
fkawee@fkawee-Satellite-C650:~$ sudo apt install python3.8 python3-pip
[sudo] password for fkawee:
Reading package lists... Done
Building dependency tree... Done
Package 'python3.8' has no installation candidate
Reading state information... Done
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
答案1
中的说明https://github.com/NanoVNA-Saver/nanovna-saver/blob/main/docs/INSTALLATION.md对于 Ubuntu 22.04 来说并不正确,因为 Ubuntu 22.04 中默认的 Python 版本是 python3.10,而不是 python3.8。将步骤 1 的说明更改为如下。
安装 python3.10、python3.10-venv 和 pip
sudo apt install python3.10 python3.10-venv python3-pip python3 -m venv ~/.venv_nano . ~/.venv_nano/bin/activate pip install -U pip
NanoVNA Saver 应用程序从 Python 虚拟环境运行,因此要启动 NanoVNA Saver,您必须先激活其 Python 虚拟环境。运行. ~/.venv_nano/bin/activate && cd nanovna-saver && python3 nanovna-saver.py
以激活 venv_nano python3.10 虚拟环境,并从 venv_nano python3.10 虚拟环境中的 nanovna-save 目录启动 NanoVNA Saver 应用程序。