>>
>> grep "^from" *.py | cut -d" " -f2 > /tmp/x
>>
>> grep "^import" *.py | cut -d" " -f2- >> /tmp/x
>>
>> cat /tmp/x | sort | uniq > /tmp/xx
>>
>> while read line; do python_mx -c "import $line"; done < /tmp/xx
他看到了满屏的ImportError和DeprecationWarning,然后就回家了