blog-python-app
blog-python-app copied to clipboard
import utils 是什么包呀
import utils 我用pip安装了这个包但是依然有错误
File "/home/work/blog-python-app/www/transwarp/web.py", line 789, in set_header self._headers[key] = utils.to_str(value) AttributeError: 'module' object has no attribute 'to_str'
Try this https://pypi.python.org/pypi/python-utils/1.5.2
2015-12-07 0:41 GMT+08:00 xk1yan [email protected]:
import utils 我用pip安装了这个包但是依然有错误
File "/home/work/blog-python-app/www/transwarp/web.py", line 789, in set_header self._headers[key] = utils.to_str(value) AttributeError: 'module' object has no attribute 'to_str'
— Reply to this email directly or view it on GitHub https://github.com/yumaojun03/blog-python-app/issues/1.
install the python_utils and then use this command import python_utils as utils