我制作了一个python脚本,当我在anaconda中运行此脚本时遇到错误,我安装了所有python软件包,还安装了nympy和pillow软件包。
can't find '__main__' module in 'crop_images_Final.py'
这是我的代码:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import getopt
import os
import glob
import datetime
import numpy as np
# import pandas as pd
from PIL import Image
# import matplotlib.pyplot as plt
import xml.etree.ElementTree as ET
if __name__ == "__main__":
folder_path = input('Enter folder path?')
labelimg_process(folder_path ,image_crop_size = 200, image_size = 224,log = False)
谁能帮我克服这个错误