在anaconda的“ crop_images_Final.py”中找不到错误“ __main__”模块

时间:2019-07-18 06:06:08

标签: python-3.x

我制作了一个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)

谁能帮我克服这个错误

0 个答案:

没有答案