How to Install Python Modules Sys, Os and Getopt on Unbuntu?

How to Install Python Modules Sys, Os and Getopt on Unbuntu?

My python version is Python 2.7.17

I usually use pip to install other modules like shutil and itertool etc. I can't find the package name for os, getopt and sys modules. Any help will be appreciated. Thank you.

2

2 Answers

Python 2.7 is obsolete and no longer supported (as of 1 January 2020). You should consider using the latest version (currently Python 3.8.5). For more information, see this.

The modules you are looking for are core modules of standard Python distribution, therefore they are installed when installing Python itself.

They are installed with your python as part of the standard library, if they are missing, something is wrong with your Python installation and you should reinstall it

Your Answer

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

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.