smartypants command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
smartypants: command not found
or when using sudo you get the following error message
sudo: smartypants: command not found
Solutions to smartypants: command not found
How To Fix smartypants: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu smartypants is provided by python3-smartypants package.
python3-smartypants is:
It can perform the following transformations:
- Straight quotes ( " and ’ ) into “curly” quote HTML entities
- Backticks-style quotes (``like this’’) into “curly” quote HTML entities
- Dashes (– and —) into en- and em-dash entities
- Three consecutive dots (… or . . .) into an ellipsis entity
This means you can write, edit, and save your posts using plain old ASCII straight quotes, plain dashes, and plain dots, but your published posts (and final HTML output) will appear with smart quotes, em-dashes, and proper ellipses.
SmartyPants does not modify characters within
, , , <script>
tag blocks. Typically, these tags are used to display text
where smart quotes and other “smart punctuation” would not be appropriate,
such as source code or example markup.
This is the Python 3 version of the package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-smartypants
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-smartypants.
sudo apt -y install python3-smartypants
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-smartypants
Summary
In this tutorial we learn how to fix smartypants command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.