Azure:没有名为pip的模块

时间:2018-05-29 21:26:57

标签: python azure pip importerror

我尝试将我的代码推送到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'

有趣的是,它在五六个小时前就有效了。

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

好的,我自己找到了答案。

来吧:

D:\home\site\wwwroot\env\Scripts

并使用

easy_install.exe -U pip

所以,这很简单。