Category Archives: Python

Run Python Scripts Without Invoking `Python`

To nromally run python scriupts you need to invoke `python`, i.e: python script.pypython script.py However, if you include this text in the first line of your python script: #!/usr/bin/python#!/usr/bin/python Then you can run your python script with just: ./script.py./script.py Of course, you’ll need to first set +x permissions: chmod +x script.pychmod +x script.py If you […]

How to Install Python PIP on Debian

To manage Python packages you can use PIP. To install PIP just type: apt-get install python-pip #python 2 apt-get install python-pip3 #python 3apt-get install python-pip #python 2 apt-get install python-pip3 #python 3 Here is an example on how to use PIP: pip install packageName pip uninstall packageName pip search packageNamepip install packageName pip uninstall packageName […]