在本地起python编程的应用时,需要先安装依赖(如没有安装pip,安装依赖前要先安装pip),我这里用的是git安装依赖,结果报错ImportError: ‘module’ object has no attribute ‘main’,报错信息如下:
$ pip install -r requirements.txt
Traceback (most recent call last):
File "D:\Python\Scripts\pip-script.py", line 11, in <module>
load_entry_point('pip==9.0.3', 'console_scripts', 'pip')()
File "D:\Python\lib\site-packages\pkg_resources\__init__.py"