原文:AttributeError: module 'pip' has no attribute 'main'

通过pycharm创建Django项目是出现如下错误 AttributeError: module pip has no attribute main 环境信息:pycharm . . Professional Edition python . . 位 pip . . Django . . 错误原因:由于pip 版本中没有main ,如果在不降级的情况下,修改这个文件 找到pycharm安装目录下 ...

2019-01-24 15:01 0 1725 推荐指数:

查看详情

module 'pip' has no attribute 'main'

Pycharm安装package出现报错:module 'pip' has no attribute 'main' Traceback (most recent call last): File "D:\Program Files\JetBrains ...

Thu May 31 06:58:00 CST 2018 0 816
AttributeError: module '__main__' has no attribute 'main'解决方法

在终端运行.py文件时报错:AttributeError: module '__main__' has no attribute 'main' 原因:在PyCharm里运行python程序需要添加 但是直接用python命令行运行时无法识别出该函数头,删除该函数所有内容即可! ...

Sat Jan 05 02:32:00 CST 2019 0 3244
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM