
问题解决
宇宙一码平川
这个作者很懒,什么都没留下…
展开
-
【十万个BUG】npx mrm lint-staged报错
G:\Code\react-blogs>npx mrm lint-stagednpx: 300 安装成功,用时 93.663 秒C:\Users\liu\AppData\Roaming\npm-cache\_npx\8712\node_modules\mrm\bin\mrm.js:55 throw err; ^Error: Cannot find module 'C:\Users\liu\AppData\Roaming\npm-c原创 2021-06-07 18:06:10 · 1347 阅读 · 0 评论 -
解惑:震惊了,scipy居然安装失败了?
问题描述:ModuleNotFoundError: No module named 'scipy'问题分析:项目缺少cripy安装模块问题解决:#没有安装conda时,可以换成pipconda install h5pyconda install scripy最终安装成功:原创 2020-06-25 10:13:50 · 1027 阅读 · 0 评论 -
十万个BUG:Ubuntu18.04下切换自己想要的python版本默认设置为python3
首先,我们要先查看下python默认版本。python可以看到默认为python2,这不是我们想要的,要知道python2维护时间截止到2020年,也就是今年底。因此我们需要切换python版本,设置优先级,最后一个数字越大、优先级越高。sudo update-alternatives --install /usr/bin/python python /usr/...原创 2020-04-24 12:48:46 · 607 阅读 · 0 评论 -
十万个BUG:小程序报错thirdScriptError Unexpected identifier SyntaxError: Unexpected identifier
thirdScriptError Unexpected identifier SyntaxError: Unexpected identifier问题描述:再进行小程序开发时,总是出现这种问题,而且总是找不到错误位置,这就很恼火。问题分析:根据小程序的提示,可能的原因是语法有错误,原因是微信小程序目前不支持es6语法,es6语法需要通过其他方式。问题解决:如果我...原创 2020-04-20 18:43:56 · 1575 阅读 · 0 评论 -
小程序的四次元口袋:如何使用wxs在wxml文件对时间戳进行格式化
如何使用wxs在wxml文件对时间戳进行格式化问题描述:wxs中使用date创建实例报错报错信息Uncaught SyntaxError: Invalid or unexpected token问题代码:filter.js文件const formatTime = date => { const year = date.getFullYear() co...原创 2020-04-18 16:53:04 · 645 阅读 · 0 评论 -
十万个BUG:ImportError: cannot import name 'PILLOW_VERSION'、ImportError: No module named 'pretrainedmode
成功解决ImportError: cannot import name 'PILLOW_VERSION'问题描述:ImportError: cannot import name 'PILLOW_VERSION'问题解决:由于PILLOW的版本太高,因此需要降低版本。pip3 install Pillow==6.2.2成功解决这个八阿哥,终于有机会见下一个八阿哥了。...原创 2020-04-16 22:52:00 · 886 阅读 · 0 评论 -
git的四次元口袋:github、码云
1、配置ssh账户和邮箱创建账户git config --global user.name "我的姓名"git config --global user.email "我的邮箱"查看账户git config --global user.name git config --global user.email2、本地生成ssh密钥邮箱为刚刚配置好的邮箱ssh...原创 2020-03-22 19:56:10 · 195 阅读 · 0 评论 -
python -使用pytesseract识别文字时遇到的问题
1、运行环境 (1) win10 (2) pycharm (3) python 3.52、下载pytesseract、pillow库(1)在cmd终端页面输入:pip install pytesseract(2)在cmd终端页面输入:pip install pillow3、安装Tesseract-OCR软件我们需要下载Tesseract...原创 2019-10-16 15:25:14 · 6610 阅读 · 7 评论 -
问题解决:解决Windows安装使用npm(Nodejs)、用vscode使用ts文件
1、下载nodejs文件http://nodejs.cn/如图进入nodejs官网:根据自己电脑实际的配置进行选择安装合适的Nodejs版本。根据选择后进行下载。2、配置环境根据电脑配置选择合适的版本进行安装。window下载.msi文件或者.zip压缩包,我这里选择的是(node-v8.11.1-win-x64.zip)。解压即可使用,再到高级设置里配置一下Pat...原创 2019-09-20 10:46:57 · 855 阅读 · 0 评论 -
问题解决:pycharm的run 全部变成了Run 'Unittests in
Unittest是python里面 的单元测试框架,作用是:组建测试用例(包含断言),执行用例,生成测试报告为什么pycharm的run 全部变成了Run 'Unittests in如果类名、方法名里面有test,右键run的时候,自动就变成了Run 'Unittests in 文件名'其他非测试用例的类、方法,强烈建议 不要有test字段,右键就是正常的“run 文件名”...原创 2019-09-19 19:46:13 · 1901 阅读 · 0 评论 -
python开发技术---configparser模块的安装、基础读写ini文件
1、安装Python3:pip3 install configparserPython: pip install configparser如果pip版本不够新,按照提示进行升级pip.python -m pip install --upgrade pip原创 2019-09-09 21:16:13 · 432 阅读 · 0 评论 -
内功秘籍----CMD创建Django项目
django项目的创建(在CMD中)1.切换到你想要存储项目的位置(base) D:\biancheng>cd pythonCODE如果在cmd中安装了虚拟环境,应该进行切换环境到python的Django环境activate base2.创建一个django项目,项目名叫studentdjango-admin startproject student3.切换...原创 2019-08-23 15:17:32 · 316 阅读 · 0 评论 -
问题解决--Windows下安装Django
Django是当前一款非常流行的开源web框架,它基于MVC模式,强调快速开发,拥有许多功能强大的第三方插件,开发者通过利用这些插件可以快速方便地开发自己的网站。本文讲述如何在Windows系统下面安装Django。安装Python作为Python的一个web框架,在安装django前需要先安装Python,但是不同版本的django对于Python版本的要求不一样。本次安装的是最新...原创 2019-08-17 16:18:28 · 188 阅读 · 0 评论 -
问题解决--npm install 安装依赖一直失败
问题提出:最近学习vue项目,在执行npm install命令安装依赖包的时候,要么报错,要么就是一直卡在那里,如下:问题解决:(1)删除C:\Users\Administrator\AppData\Roaming路径下的npm和npm-cache2个文件夹(2)执行命令 npm install -g cnpm --registry=http://registry.n...原创 2019-08-17 12:02:19 · 17810 阅读 · 10 评论 -
问题解决:FieldError: Cannot resolve keyword 'sys_mes_publish_date_gte' into field.
所遇问题:FieldError: Cannot resolve keyword 'sys_mes_publish_date_gte' into field.问题解决:把sys_mes_publish_date_gte改为sys_mes_publish_date__gte(gte前双下划线)问题即可解决了。运行结果:<QuerySet [<Student: 蔡春玲>...原创 2019-08-23 20:59:17 · 1137 阅读 · 0 评论