Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Administrator\Desktop\pycharmDoc\Pict_Processing\venv\Scripts\python.exe'.
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\packaging_tool.py", line 192, in main
retcode = do_install(pkgs)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\packaging_tool.py", line 109, in do_install
return pip.main(['install'] + pkgs)
AttributeError: module 'pip' has no attribute 'main'
由于pip 10版本中没有main(),如果在不降级的情况下,修改这个文件
C:\Program Files\JetBrains\PyCharm Community Edition 2017.3.3\helpers\packaging_tool.py
在头部加上
import pip._internal as pip_new然后分别修改文件中的这两行中的pip
return pip.main(['install'] + pkgs)为
return pip_new.main(['install'] + pkgs)