lcqbug
2018-01-28 17:31
我 的Python 版本3.4
错误信息如下
Collecting web.py
Using cached web.py-0.38.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\lcqbug\AppData\Local\Temp\pip-build-pw5glk26\web.py\setup.p
y", line 6, in <module>
from web import __version__
File "C:\Users\lcqbug\AppData\Local\Temp\pip-build-pw5glk26\web.py\web\__i
nit__.py", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
ImportError: No module named 'utils'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\lcqbug\A
ppData\Local\Temp\pip-build-pw5glk26\web.py\
web.py 0.39 is the latest released version of web.py. You can install it by running:
pip install web.py
The above version only supports Python 2. If you looking for Python 3 support, try the experimental version.
pip install web.py==0.40-dev1
Or to get the latest development version from git:
git clone git://github.com/webpy/webpy.git ln -s `pwd`/webpy/web .
pip uninstall web.py 卸载
pip install web.py==0.40.dev0
修改Lib\site-packages\web 下的utils.py文件。
将第526行的
yield next(seq)1
修改为
try: yield next(seq) except StopIteration: return
pip install web.py==0.40.dev0 完美解决
错误代码1 文件位置问题 设置一下环境变量
python-web.py开发入门
58639 学习 · 106 问题
相似问题