Classification_Machine Learning and Deep Learning based LULC in LiDO3
Some error occured during data processing in LiDO3.
Important: Be sure to use python3 xx.py
and pip3 install --user packages
in processing.
LiDO3 codes
1 |
|
Errors
1. ImportError: No module named tifffile
Solution:
python
程序中使用import XXX
时,python
解析器会在当前目录、已安装和第三方模块中搜索xxx
,如果都搜索不到就会报错。使用sys.path.append()
方法可以临时添加搜索路径,方便更简洁的import
其他包和模块。这种方法导入的路径会在python
程序退出后失效。此时,可以通过增加path的方法来解决1:
1 |
|
2. SyntaxError: Non-ASCII character ‘\xc2’ in file
YOU WILL LIKELY GET THIS ERROR if you import a PYTHON 3 file into the PYTHON 2 interpreter2. (This question should not be closed - ‘\xc2’ is a very particular sort of problem - and very different to that raised by the supposed duplicate question. The answer should be made clear here).
Solution:
Python3 RandomForest.py
instead of python RandomForest.py
3.
Classification_Machine Learning and Deep Learning based LULC in LiDO3
https://mengyuchi.gitlab.io/2023/03/16/Classification-Machine-Learning-and-Deep-Learning-based-LULC-in-LiDO3/