python安装web.py
2019-03-14 15:54 雄风狂飙 阅读(227) 评论(0) 收藏 举报
使用命令 python -m pip install web.py
一直报错:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-nb8zztd5/web.py/setup.py", line 6, in <module>
from web import __version__
File "/tmp/pip-install-nb8zztd5/web.py/web/__init__.py", line 14, in <module>
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
ModuleNotFoundError: No module named 'utils'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-nb8zztd5/web.py/
经搜,原来是python3下面安装web.py要带“==0.40-dev1”参数
python -m pip install web.py==0.40-dev1
然后,就成功了:
[root@VM_0_8_centos myweb]# python -m pip install web.py==0.40-dev1
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Collecting web.py==0.40-dev1
Downloading http://mirrors.tencentyun.com/pypi/packages/db/a5/8dfacc190908f987663269a92efa682175c377e3f7eab84ed0a89c963b47/web.py-0.40.dev1.tar.gz (117kB)
100% |████████████████████████████████| 122kB 602kB/s
Installing collected packages: web.py
Running setup.py install for web.py ... done
Successfully installed web.py-0.40.dev1
浙公网安备 33010602011771号