pcbasic command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pcbasic: command not found
or when using sudo you get the following error message
sudo: pcbasic: command not found
Solutions to pcbasic: command not found
How To Fix pcbasic: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pcbasic is provided by python3-pcbasic package.
python3-pcbasic is:
PC-BASIC is a free, cross-platform interpreter for GW-BASIC, Advanced BASIC (BASICA), PCjr Cartridge Basic and Tandy 1000 GWBASIC. It interprets these BASIC dialects with a high degree of accuracy, aiming for bug-for-bug compatibility. PC-BASIC emulates the most common video and audio hardware on which these BASICs used to run. PC-BASIC runs plain-text, tokenised and protected .BAS files. It implements floating-point arithmetic in the Microsoft Binary Format (MBF) and can therefore read and write binary data files created by GW-BASIC.
This package installs the library for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pcbasic
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pcbasic.
sudo apt -y install python3-pcbasic
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pcbasic
Summary
In this tutorial we learn how to fix pcbasic command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.