After creating the configuration file, the window executes pytest and reports the following error:
the essence of the error is that the code is abnormal and the utf8 format needs to be modified
solution: find iniconfig under the phthon installation path/_ Init.py file, add code encoding = ‘utf8’, as shown in the figure
Read More:
- Solution to errors reported by TES command in vscode – errors reported by typescript command
- Python reads the configuration file. Ini and resolves the error
- Solutions to errors in the final running of JDBC programming
- Solutions to errors in virtual machine running in Android studio
- Common errors reported by Eureka in spring cloud
- Solve the error reported by Android studio directly running java.main
- Error when pychart terminal runs pytest: file not found:
- Idea can’t find the solution of XML configuration by running project prompt through external Tomcat
- Solve the problem of error running console reported by pycharm Python console
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- [Python] error reported when reading DICOM file pydicom.errors.invaliddicomerror
- Solutions to errors in XML files
- PHP read ini configuration error syntax error, unexpected ‘=’In
- MySQL driver compiling method of QT under windows and solutions to abnormal errors
- Three solutions to flash back of program running result box under vs
- Some solutions to the problem of windows flashback after vs running
- About maven Pom.xml Personal solutions to reporting errors!!!
- Solutions to various inexplicable errors after QT compilation
- Causes and solutions of errors in “insufficient ram for flash algorithms”
- Solutions to vs2013 compilation errors