Studied brother there copy a python file, run error Importerror:no module named Python_util.util,python Small white Internet search, and did not search for valuable answers ... After groping, finally resolved.
In fact, this is the lack of python_util.util, to this URL https://pypi.python.org/pypi/python-util/2.0.0#downloads download, as shown, select the first can be downloaded after the decompression, There's a setup.py inside.
Enter command python setup.py, error:no commands supplied with a gorgeous error. Learn from the blogger's approach http://blog.csdn.net/dxldehuali/article/details/38866669, instead enter the python setup.py install
With the new error, Error:can ' t create or remove files in install directory. Clearly not enough authority. Go to the upper directory and change the permissions of the entire directory by command sudo chmod 777-r python-util-2.0.0. Then go to python-util-2.0.0, locate the setup.py file, and install it via the command sudo python setup.py install.
Confidently rerun, result error No module named Util, Crash!
After the meal came back, calm down to consider, check the use of import in Python, found that the error in the code is from python_util.util import *, the actual should be from python_util import *. Re-run, problem solving ...
Cry...
Importerror:no module named Python_util.util