A guy who automatically writes requirements.txt when using an external module of python. When it is in the project folder /hoge.py
cd project folder
pipreqs .
The requirements.txt of hoge.py should appear under the project folder,
UnicodeDecodeError: 'cp932' codec can't decode byte 0x81 in position 239: illegal multibyte sequence
I got an error that often appears when I don't know how to encode.
Read the reference. https://pypi.org/project/pipreqs/ There seems to be a --encoding option.
pipreqs --encoding UTF8 .
This is the solution.
requirements.txt
networkx==2.3
plotly==4.4.1
pandas==1.0.3
streamlit==0.60.0
It came out safely, it's over.
Recommended Posts