
脚本语言
Ju_Sang
Memory abstruse eyes. Memories of the clear smile.
展开
-
Adaptive Server Connection Failed on Windows
pymssql._mssql.MSSQLDatabaseException: (20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed (localhost)原创 2024-06-24 09:54:12 · 737 阅读 · 0 评论 -
pyinstaller 打包错误:RecursionError: maximum recursion depth exceeded
最近在用 pyinstaller 打包项目的时候遇到如下错误:RecursionError: maximum recursion depth exceeded解决方案:1. 执行 pyinstaller,会生成 filename.spec文件:pyinstaller -F filename.py2. 在 filename.spec 文件头添加下面语句import sys...原创 2018-09-04 14:39:30 · 12984 阅读 · 4 评论 -
Python执行sql脚本时GO语句报错
在使用Python中的pymssql库执行如下格式的sql脚本时:SELECT .....GOINSERT INTO ...GO报错,错误信息如下: (102, b"Incorrect syntax near 'GO'.DB-Lib error message 20018, severity 15:\nGeneral SQL Server error: Check mes...原创 2018-09-11 17:11:16 · 3376 阅读 · 0 评论 -
Windows下cmd运行python脚本报错“ModuleNotFoundError 或者 ImportError: No Module named ...”的解决方法
最近遇到一个问题,原本在Idea上运行正常的python脚本,但是在用cmd命令行运行的时候报了模块未能找到的错误:File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'model'当我们导入一个模块时:import xxx 或者 from xx import xxx,...原创 2018-09-12 15:48:15 · 15941 阅读 · 1 评论 -
Python3 shutil(高级文件操作 模块)
本文由 Luzhuo 编写,转发请保留该信息. 原文: http://blog.youkuaiyun.com/Rozol/article/details/72672698以下代码以Python3.6.1为例 Less is more! 高级文件操作(拷贝 / 移动 / 压缩 / 解压缩) #!/usr/bin/env python# coding=utf-8# shutil_demo.p...转载 2018-09-07 15:07:05 · 395 阅读 · 0 评论 -
Python windows运行环境的迁移与离线安装
应用场景:需要在windows系统环境下快速复制迁移Python运行环境和已安装的packages (已经安装相关python环境的直接跳过“下载地址”,“安装要求”) 下载地址https://sourceforge.net/projects/portable-python/files/安装包内包含Python编辑器如不需要可以只提取Python目录,即Python完整执行环境...转载 2018-09-13 15:06:18 · 6069 阅读 · 0 评论 -
pip install中的报错
问题1. Script file 'D:\Anaconda3\Scripts\pip-script.py' is not present.解决方案:再装一次pip即可解决,如下easy_install pip原创 2018-10-12 16:15:23 · 963 阅读 · 0 评论 -
JPype:实现在python中调用JAVA 和 错误处理
JPype使用说明1.安装jpype安装的时候输入: pip install jpype1 (后面要加一个1)2.启动JVMJPype 提供的 startJVM() 函数的作用是启动 JAVA 虚拟机,所以在后续的任何 JAVA 代码被调用前,必须先调用此方法启动 JAVA 虚拟机。1) jpype.startJVM() 的定义:startJVM(jvm, *args...原创 2018-11-05 17:42:39 · 15952 阅读 · 0 评论