How to Install Python-Node in Ubuntu 18.04

How to Install Python-Node in Ubuntu 18.04

I got the following results when trying to install python-node in Ubuntu 18.04.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python-node
0

1 Answer

Node.js does not depend on Python. To install the node snap package open the terminal and type:

sudo snap install node --classic --channel 11/stable 

python-node is a Node.js script runner for Python. To install python-node open the terminal and type:

sudo apt install python3-pip  
python3 -m pip install --user python-node  

Both Node.js and Python can run scripts interactively in a REPL. A read–eval–print loop (REPL), also termed an interactive top level or language shell, is a simple, interactive computer programming environment that takes single user inputs (i.e. single expressions), evaluates them, and returns the result to the user. Installing IPython (python3-ipython) allows the user to run blocks of code and scripts interactively in a more user-friendly way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.