PyCharm-安装包装工具时出现Packaging_tool.py错误

时间:2018-10-09 20:09:36

标签: python pip pycharm jetbrains-ide

我正在尝试建立一个Python Flask项目和Project Interpreter。它向我显示“未找到Python打包工具”

Python Packaging tools not found

当我尝试安装它时,在PyCharm文件的第100行中显示错误-

Error

Execute command:
/Applications/PyCharm.app/Contents/helpers/packaging_tool.py untar 
/Applications/PyCharm.app/Contents/helpers/setuptools-28.8.0.tar.gz

Error Occurred:
nstall (pkgs) : try : try : from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() return main([ 'install' ] + pkgs) def do_uninstall (pkgs) : try : try : from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() return main([ 'uninstall' , '-y' ] + pkgs).stdout.flush()



File "/Applications/PyCharm.app/Contents/helpers/packaging_tool.py", line 100
nstall (pkgs) : try : try : from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() return main([ 'install' ] + pkgs) def do_uninstall (pkgs) : try : try : from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() return main([ 'uninstall' , '-y' ] + pkgs).stdout.flush()
              ^
SyntaxError: invalid syntax

我再次安装了pip / pip3。还尝试编辑nstall以安装在第100行。请帮助

1 个答案:

答案 0 :(得分:0)

尝试一下: 设置->项目解释器-> enter image description here->搜索瓶->安装