Running the same code on server and desktop – Exception/Error handling

Recently, I was bogged with a problem where I had a code running on the server which moves files after execution of the entire process from one folder into another. This created a dilemma for me if I should create the same folder paths on my desktop to keep the code running or to bearContinue reading “Running the same code on server and desktop – Exception/Error handling”

Basic file operations in Python – Move and Delete files

In this article we will show very simple examples of how to move, and delete files in Python using the built-in functions such as shutil.move(), and os.remove(). Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module helps in automating the process ofContinue reading “Basic file operations in Python – Move and Delete files”

Installing multiple python packages in one go – Avoid installing one package at a time

Hey Guys, So I recently had the problem of moving from one python environment to another due to some issue with my computer. Now the problem was that I had tons of packages already installed on my python environment, now pip installing each package again would be more than a day’s task. So I cameContinue reading “Installing multiple python packages in one go – Avoid installing one package at a time”

Python stuck – Displaying output of last execution for any code executed – Buffer Overflow/Cache issue

Hey Guys, I recently ran into a problem while playing with Python. The output on the console was displaying the output of a previous code that I had modified. I was playing around PyQt4 to PyQt5 conversion of Sentdex’s PyQt4 YouTube tutorial right here. Everythng went fine until I tried to print the entire page onContinue reading “Python stuck – Displaying output of last execution for any code executed – Buffer Overflow/Cache issue”

Design a site like this with WordPress.com
Get started