[英]Azure: no module named pip
我試圖將代碼推送到Azure Web App,但出現此錯誤:
remote: Found compatible virtual environment.
remote: Pip install requirements.
remote: Traceback (most recent call last):
remote: File "D:\python34\lib\runpy.py", line 170, in _run_module_as_main
remote: "__main__", mod_spec)
remote: File "D:\python34\lib\runpy.py", line 85, in _run_code
remote: An error has occurred during web site deployment.
remote: exec(code, run_globals)
remote: File "D:\home\site\wwwroot\env\scripts\pip.exe\__main__.py", line 5, in <module>
remote: ImportError: No module named 'pip'
有趣的是,它在五個或六個小時前就已運行。
任何幫助將不勝感激。
好吧,我自己找到了答案。
只需來到:
D:\home\site\wwwroot\env\Scripts
並使用
easy_install.exe -U pip
因此,這很簡單。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.