Electron Proton
  • Home
  • Linux Command Reference
  • Linux
  • C code
  • programming
  • python
  • debugging
  • HPC
  • MPI
  • Linux tools
  • About

Category: python

pip list – exits with error “TypeError: ‘module’ object is not callable”

pip list – exits with error “TypeError: ‘module’ object is not callable”

January 21, 2020

Issue: # pip list Traceback (most recent call last): File “/app/python/2.7.16/bin/pip”, line 11, in <module> sys.exit(main()) TypeError: ‘module’ object is not callable   Resolution: # python -m pip install –upgrade pip Where option “-m” – run library module as a script (terminates option list)   Explanation: A broken pip installation can cause this issue. By …

create a file name with date in python

create a file name with date in python

April 10, 2018

We often may want to create the output file with a date in python. It makes more sense to append or prepend date to the file. To do so, you have to import “time” module from python and use time.strftime() method. Specify t he format string to the method as desired. You can achive it …

Contact Us | Privacy Policy
© 2023 Electron Proton