发布时间:2019-09-18 07:22:34编辑:auto阅读(2257)
PyScripter分32和64为两种,安装时需要对应python的位数,与操作系统无关。
即:32位python对应32位pyScripter。64位类似
问题分析见:http://www.crifan.com/pyscripter_start_error_python_could_not_be_properly_initialized_we_must_quit/
常见错误2:ascii错误
修改:安装目录下lib\site.py
def setencoding():
"""Set the string encoding used by the Unicode implementation. The
default is 'ascii', but if you're willing to experiment, you can
change this."""
encoding = "ascii" # Default value set by _PyUnicode_Init()
if 1: #此处 把"if 0" 修改为 "if 1"
# Enable to support locale aware default string encodings.
import locale
loc = locale.getdefaultlocale()
if loc[1]:
encoding = loc[1]PyScripter官网为:http://code.google.com/p/pyscripter/
另附两个下载地址:
PyScripter_x86:
http://pyscripter.googlecode.com/files/PyScripter-v2.5.3-Setup.exe
PyScripter_x64:
http://pyscripter.googlecode.com/files/PyScripter-v2.5.3-x64-Setup.exe
上一篇: Python_类的继承
下一篇: CentOS7安装python3.6保留
51307
50758
41356
38164
32638
29534
28380
23254
23222
21546
1619°
2355°
1957°
1902°
2231°
1940°
2631°
4411°
4249°
3019°