摘要:
一、场景执行 pip install scrapy 后,安装成功且执行 import scrapy 成功 二、问题在shell中执行 scrapy 返回 bash: scrapy: command not found 三、解决办法(1)进入 Python 的主目录,如cd /usr/local/py 阅读全文
posted @ 2019-11-28 23:00
潇潇六月雨
阅读(682)
评论(0)
推荐(0)
摘要:
今天在ubuntu上升级了pip,之后执行pip命令的时候就报错了: Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(__main__.main()) 解决方法: sudo v 阅读全文
posted @ 2019-11-28 22:47
潇潇六月雨
阅读(1764)
评论(0)
推荐(0)
摘要:
一、问题:安装python包的时候报错ReadTimeoutError——Read time out. 二、解决办法三种方法,一是切换下载源;二是下载相应平台的安装包后安装;三是下载源码编译安装; 第一种方法,切换下载源推荐 https://pypi.tuna.tsinghua.edu.cn/sim 阅读全文
posted @ 2019-11-28 22:38
潇潇六月雨
阅读(1044)
评论(0)
推荐(0)
摘要:
<?php // User.php class User extends Model { const USER_STATUS_ACTIVED = 1; //进行中 const USER_TYPE_TEST = 'test'; //测试用户 // 需要在控制器访问, 使用static public s 阅读全文
posted @ 2019-11-28 11:53
潇潇六月雨
阅读(579)
评论(0)
推荐(0)
摘要:
如上,怎么将$title 像$query一样,在函数内部使用? $result = UserMenus::with(['menu'=>function($query){ $query->where('title',$title); }])->where('user_id',$userId)->fir 阅读全文
posted @ 2019-11-28 10:27
潇潇六月雨
阅读(1741)
评论(0)
推荐(0)
浙公网安备 33010602011771号