首页 > 编程语言 > 详细

饮冰三年-人工智能-Python-23 Python PyCharm 使用中常见的问题

时间:2018-12-09 15:48:22      阅读:200      评论:0      收藏:0      [点我收藏+]

一:软件工具使用中遇到的问题

1:AttributeError: module ‘pip‘ has no attribute ‘main‘问题 

技术分享图片

处理方法:

a:找到JetBrains\PyCharm 2017.3.2\helpers\packaging_tool.py

技术分享图片技术分享图片

技术分享图片
def do_install(pkgs):
    try:
        #import pip
        try:
            from pip._internal import main
        except Exception:
            from pip import main
    except ImportError:
        error_no_pip()
    return pip.main([install] + pkgs)

def do_uninstall(pkgs):
    try:
        #import pip
        try:
            from pip._internal import main
        except Exception:
            from pip import main
    except ImportError:
        error_no_pip()
    return pip.main([uninstall, -y] + pkgs)
View Code

 二:编译开发中遇到的问题

1:安全机制导致页面不能跳转

技术分享图片

处理方法

技术分享图片

 处理方法2 在页面上添加 {%csrf_token%} 安全机制

技术分享图片

 

饮冰三年-人工智能-Python-23 Python PyCharm 使用中常见的问题

原文:https://www.cnblogs.com/YK2012/p/10083485.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!