python TypeError: ‘encoding’ is an invalid keyword argument for this function

python shell script calls the emergence of this problem, query the reason that, python3.6 python script is written, we default on the server python is python2.7.3, so there will be coding problems.

 

Solutions:

  1. Install python3, then call python3

or

  2. Change the python script, https://blog.csdn.net/a1007720052/article/details/80745135

Guess you like

Origin www.cnblogs.com/ivyharding/p/11276587.html