Python import web not working

后端 未结 7 1836
长发绾君心
长发绾君心 2020-12-29 08:15

So I\'m getting the following error when running a script that imports web.

$ python bin/app.py
Traceback (most recent call last):
File \"bin/ap         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 08:35

    The problem is that you most likely used pip install lpthw.web to install however the lpthw book is using python 2.7 so pip2.7 would fix this:

    pip2.7 install lpthw.web

提交回复
热议问题