python pyfiglet not installing due to NO SUCH FILE OR DIRECTORY

Viewed 35
1 Answers

The python command is designed to run Python code, not to install Python modules.

What you are looking for is pip, which is the official package manager, made for installing Python modules hosted on PyPI, and with some hacks, online community sources:

python -m pip install pyfiglet

If Python detects the pip module as non-existent, which is useful in many cases (like installations that did not install pip), use the built-in ensurepip module to install it:

python -m ensurepip

Hope this resolved your problem.

Related