Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python programs on different Operating Systems

Tags:

python

If I write a python script using only python standard libraries, using Python 2.6 will it work on all Operating Systems as long as python 2.6 is installed?

like image 430
Ali Avatar asked May 14 '26 21:05

Ali


1 Answers

Depends. There are a few parts of the Python standard libraries that are only available on certain platforms. These parts are noted in the Python documentation.

You also need to be careful of how you handle things like file paths - using os.path.join() and such to make sure paths are formatted in the right way.

like image 148
Amber Avatar answered May 17 '26 10:05

Amber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!