摘要: Ubuntu下使用python3中的venv创建虚拟环境 见鬼了只能用这种方法 1.虚拟环境跟随项目,为单个项目创建虚拟环境 (python3.4以上自带直接使用 ,pip install virtualenv) 1.建立项目目录:(找个目录) 12 mkdir PythonProject cd P 阅读全文
posted @ 2020-03-28 03:02 星星放飞 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 先删了3.4 sudo rm /usr/bin/python3sudo ln -s /usr/bin/python3.6 /usr/bin/python3 在 1、下载Python3 wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.t 阅读全文
posted @ 2020-03-28 02:31 星星放飞 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: RecursionError:在调用Python对象时超过最大递归深度 项目 python flask: 在pycharm软件里, default settings --> Build, Execution, Deployment -> Python Debugger. 找到 "Gevent com 阅读全文
posted @ 2020-03-25 23:58 星星放飞 阅读(1746) 评论(0) 推荐(0) 编辑
摘要: npm install -g live-server 全局安装live-server 安装完成 文件目录下执行 live-server然后!!!!!! live-server不是内部或外部命令,也不是可运行的程序 解决方法下的时候看下在那个路径加到系统变量 有点不明白nodejs也在系统变量了,安装 阅读全文
posted @ 2020-03-25 20:56 星星放飞 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: 原因在于在python中从Redis取出的Sting都变成bytes格式 解决一 # 加上decode_responses=True即可解决 redis_store = redis.StrictRedis(host='127.0.0.1', port=6379, decode_responses=T 阅读全文
posted @ 2020-03-22 16:37 星星放飞 阅读(1825) 评论(0) 推荐(1) 编辑
摘要: 解决from logging.handlers import RotatingFileHandler 在logging同级找到handlers 官方文档:https://bugs.python.org/issue1436 阅读全文
posted @ 2020-03-21 19:37 星星放飞 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 自己学习一般在windows下使用: git官网下载 64-bit Git for Windows下载 windows只有64位32不行 安装完git打开$ git config --global user.name "注册昵称" # 随便写$ git config --global user.na 阅读全文
posted @ 2020-03-21 00:28 星星放飞 阅读(714) 评论(0) 推荐(0) 编辑
摘要: error: 无法推送一些引用到 'https://gitee.com/xingpy/dreapi.git' 将文件夹下隐藏的.git 通过 git init 命令覆盖 git add . git commit -m "your description" git push origin master 阅读全文
posted @ 2020-03-18 19:11 星星放飞 阅读(94) 评论(0) 推荐(0) 编辑
摘要: ./unity_login.sh ssh 命令说明: 1、翻页: "u" -> 上一页 "n" -> 下一页 2、查找 "/dx-jiangsu" ->查找 大区|区域|ip|服务器名称 包含了"dx-jiangsu"的服务器 "/*" ->查找所有 3、重置查询条件 "r" -> 重置查询条件为查 阅读全文
posted @ 2020-03-18 14:27 星星放飞 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 在开发不同应用和版本,可以用虚拟环境分开 安装 pip install virtualenv 1 使用 创建虚拟环境 提前创建一个文件夹,用来存放虚拟环境的文件。 在这里我的目录是F:\Python_virtualenvs\,用来存放基于python2的虚拟环境。 virtualenv -p C:\ 阅读全文
posted @ 2020-03-18 14:19 星星放飞 阅读(263) 评论(0) 推荐(0) 编辑