亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

pip install web.py 安裝失敗

我 的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\

正在回答

4 回答

Get Started

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?.


0 回復 有任何疑惑可以回復我~

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


0 回復 有任何疑惑可以回復我~

pip install web.py==0.40.dev0? 完美解決

4 回復 有任何疑惑可以回復我~
錯誤代碼1
文件位置問題
設置一下環境變量


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

pip install web.py 安裝失敗

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號