Is it possible to directly import Python packages from the console?
According to the Repl.it documentation it is possible to directly import a Python package by evaluating at the console the relevant
import expression such as:
However, when I do it in any of my Python 3 REPLs I get a module not found error:
This happens in all REPLs, including freshly created ones, and with all packages. The only way I can install a package is by using the REPL’s package manager via a
What am I doing wrong?
It works just fine for me. I tried it multiple ways.
I imported it from the
I imported it from another file,
I don't think you can import it directly from the console.
You would have to have the
import statement in a file. Then it will install.