报错原因:mysql版本身份验证出现问题引起的 我这里报错的地方是在Django里,pycharm连接数据库时出现的 解决办法,安装安装cryptography即可:pip install cryptography 或者 pycharm里直接安装也可以…
cryptography is required for sha256_password or caching_sha2_password 需要cryptography模块的支持才能连接需要sha256_password or caching_sha2_password的数据库 pip install cryptography…
目录 [简说Python WEB]数据库 数据库表 docker安装MySQL Flask-SQLAlchemy操纵MySQL数据库 初始化 定义模型 定义关系 数据库的CRUD操作 创建表 insert数据 update数据 delete数据 查询数据 错误 系统环境:Ubuntu 18.04.1 LTS Python使用的是虚拟环境:virutalenv Python的版本:Python 3.6.9 [简说Python WEB]数据库 SQL数据库: Oracle,MySQL,Postgre…
一.create project mkdir jango cd jango 目录创建project myapp django-admin startproject myapp 2.在给project创建app cd myapp 的project下: python manage.py startapp appname 创建一个app python manage.py run server localhost:9999 启动jango server 默认:http://localhost:9999访…
由于pip官方的不作为,现如今python2(以及某些低版本python3)配套的pip,已经没法正常的安装pypi包了. 例如需要用到的一套PyCaffe的代码,是基于Python2的,于是用miniconda/anaconda创建了虚拟环境: conda create -n py27 python=2.7 然后尝试安装numpy: pip install numpy 结果提示: RuntimeError: Python version >= 3.5 required "老子用的是pyt…
一.背景: 使用MySQL5.6过程中,发现默认的加密插件为mysql_native_password.而sha256_password的安全程度要比mysql_native_password高,尝试切换为sha256_password. 二.配置过程: 资料: 1.从MySQL官网查询到服务器端sha256_password无需显式加载,可以在MySQL配置文件中配置使能.   官网见:https://dev.mysql.com/doc/refman/5.6/en/sha256-pluggab…
wjw:layoutInScrollView username$ pod install Analyzing dependencies xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance ――― MARKDOWN TEMPLATE ―――…
G:\Soft\python\word_cloud-master>python setup.py install error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 本机已经安装了VS2015,可以通过增加以下环境变量来解决: 再次安装,提示: RuntimeError: Broken toolchain: cannot link a simple C program 通过修改D:\I…
1.问题:在本地用matplotlib绘图可以,但是在ssh远程绘图的时候会报错 RuntimeError: Invalid DISPLAY variable 2.原因:matplotlib的默认backend是TkAgg,而FltkAgg, GTK, GTKAgg, GTKCairo, TkAgg , Wx or WxAgg这几个backend都要求有GUI图形界面的,所以在ssh操作的时候会报错. import matplotlib.pyplot as plt Backend TkAgg i…