草庐IT

that-dont-suck

全部标签

已解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

已解决(pip升级报错)WARNING:pipisconfiguredwithlocationsthatrequireTLS/SSL,howeverthesslmoduleinPythonisnotavailable.Lookinginindexes:https://pypi.tuna.tsinghua.edu.cn/simpleRequirementalreadysatisfied:pipine:\anaconda\install_root\lib\site-packages(21.0.1)WARNING:Retrying(Retry(total=4,connect=None,read=No

已解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

已解决(pip升级报错)WARNING:pipisconfiguredwithlocationsthatrequireTLS/SSL,howeverthesslmoduleinPythonisnotavailable.Lookinginindexes:https://pypi.tuna.tsinghua.edu.cn/simpleRequirementalreadysatisfied:pipine:\anaconda\install_root\lib\site-packages(21.0.1)WARNING:Retrying(Retry(total=4,connect=None,read=No

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

错误代码:YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversionfortherightsyntaxtousenear'Continue'atline1翻译:你有一个错误在你的SQL语法;查看MySQL服务器版本对应的手册,在第1行“Continue”附近使用正确的语法首先我想是否因为语句格式不对或者少写逗号但是经过检查发现不是这些问题语法上完全没有任何问题于是我又尝试去写一个其他的表名发现还是相似的问题写的比较快没有注意到格式的问题createtableusers-staff;随后我

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

错误代码:YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversionfortherightsyntaxtousenear'Continue'atline1翻译:你有一个错误在你的SQL语法;查看MySQL服务器版本对应的手册,在第1行“Continue”附近使用正确的语法首先我想是否因为语句格式不对或者少写逗号但是经过检查发现不是这些问题语法上完全没有任何问题于是我又尝试去写一个其他的表名发现还是相似的问题写的比较快没有注意到格式的问题createtableusers-staff;随后我

报错:Only the original thread that created a view hierarchy can touch its views.

报错:Log:onCrashed()–>android.view.ViewRootImpl$CalledFromWrongThreadException:Onlytheoriginalthreadthatcreatedaviewhierarchycantouchitsviews.报错原因:一般在主线程操作UI,而此次有可能在子线程里操作了UI解决方案:在代码中找到涉及UI操作的代码,看它是在哪个线程里进行操作。为里便于查看是在主线程还是子线程,可用以下方法判别:1、查看当前线程idlongid=Thread.currentThread().getId();2、查看当前线程名字Stringnam

报错:Only the original thread that created a view hierarchy can touch its views.

报错:Log:onCrashed()–>android.view.ViewRootImpl$CalledFromWrongThreadException:Onlytheoriginalthreadthatcreatedaviewhierarchycantouchitsviews.报错原因:一般在主线程操作UI,而此次有可能在子线程里操作了UI解决方案:在代码中找到涉及UI操作的代码,看它是在哪个线程里进行操作。为里便于查看是在主线程还是子线程,可用以下方法判别:1、查看当前线程idlongid=Thread.currentThread().getId();2、查看当前线程名字Stringnam

解决ERROR: Could not find a version that satisfies the requirement 问题及 ERROR: Exception:Traceback

最近安装tensorflow-hub出现错误:ERROR:Couldnotfindaversionthatsatisfiestherequirementtensorflow-hub(fromversions:none)ERROR:Nomatchingdistributionfoundfortensorflow-hub先说本人最终解决使用的方法:更换下载镜像源并将pip改为pip3出现这个问题有可能是你下载的版本与你配置的环境不兼容,最好是寻找对应的版本进行pip,此方法确实可以下载下来,但下载后不一定可用。pip3installtensorflow-hub-ihttp://pypi.douba

解决ERROR: Could not find a version that satisfies the requirement 问题及 ERROR: Exception:Traceback

最近安装tensorflow-hub出现错误:ERROR:Couldnotfindaversionthatsatisfiestherequirementtensorflow-hub(fromversions:none)ERROR:Nomatchingdistributionfoundfortensorflow-hub先说本人最终解决使用的方法:更换下载镜像源并将pip改为pip3出现这个问题有可能是你下载的版本与你配置的环境不兼容,最好是寻找对应的版本进行pip,此方法确实可以下载下来,但下载后不一定可用。pip3installtensorflow-hub-ihttp://pypi.douba

解决MySQL删除外键时报错Error Code: 1091. Can‘t DROP ‘XXX‘; check that column/key exists

解决MySQL删除外键时报错ErrorCode:1091.Can'tDROP'XXX';checkthatcolumn/keyexists  长期不写基础的MySQL代码,笔者也开始犯一些低级错误。最近,笔者在尝试将表中某列的外键约束删除时,MySQL却一直报该列本就不存在的错误。笔者报错时的运行环境:MySQL8.0.27Windows10教育版ErrorCode:1091.Can'tDROP'XXX';checkthatcolumn/keyexists  笔者非常疑惑,因为多次检查后发现列名似乎并没有错误。和往常一样,笔者为此建立了一个demo表,这才发现了原因所在。  建表代码如下:CR

解决MySQL删除外键时报错Error Code: 1091. Can‘t DROP ‘XXX‘; check that column/key exists

解决MySQL删除外键时报错ErrorCode:1091.Can'tDROP'XXX';checkthatcolumn/keyexists  长期不写基础的MySQL代码,笔者也开始犯一些低级错误。最近,笔者在尝试将表中某列的外键约束删除时,MySQL却一直报该列本就不存在的错误。笔者报错时的运行环境:MySQL8.0.27Windows10教育版ErrorCode:1091.Can'tDROP'XXX';checkthatcolumn/keyexists  笔者非常疑惑,因为多次检查后发现列名似乎并没有错误。和往常一样,笔者为此建立了一个demo表,这才发现了原因所在。  建表代码如下:CR