stl2ascii command not found

In this troubleshooting guide we learn how to fix stl2ascii command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

stl2ascii: command not found

or when using sudo you get the following error message

sudo: stl2ascii: command not found

Solutions to stl2ascii: command not found

How To Fix stl2ascii: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu stl2ascii is provided by numpy-stl package.

numpy-stl is:

Numpy-STL is a library for working with STL files (and 3D objects in general) in the Python language. Due to all operations heavily relying on Numpy this is one of the fastest STL editing libraries for Python available.

This package contains tools to convert between the ascii and binary stl file format versions, using Numpy-STL.

To fix this problem, we can install more using the command below.

sudo apt-get -y install numpy-stl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install numpy-stl.

sudo apt -y install numpy-stl

Or if you have aptitude installed you can use the following command.

sudo aptitude install numpy-stl

Summary

In this tutorial we learn how to fix stl2ascii command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.