2021年3月18日

sitecustomize.py 用法,在python启动时会自动执行其中的语句

摘要: 在python安装目录下的lib下的site-packages 目录中,新建文件sitecustomize.py。这是个特殊的文件,在python启动时会自动执行其中的语句。在sitecustomize.py中的语句 sys.setdefaultencoding("UTF-8") 的作用是将默认编码 阅读全文

posted @ 2021-03-18 09:20 闹不机米 阅读(287) 评论(0) 推荐(0) 编辑

ERROR 1: PROJ: pj_obj_create: Open of /opt/conda/share/proj failed

摘要: import os os.environ['PROJ_LIB'] = '/opt/conda/share/proj' 阅读全文

posted @ 2021-03-18 09:15 闹不机米 阅读(934) 评论(1) 推荐(0) 编辑

Warning 1: Recode from CP437 to UTF-8 failed with the error: "Invalid argument".

摘要: # CPL_ZIP_ENCODING if 'CPL_ZIP_ENCODING' not in os.environ: # Prevents "Warning 1: Recode from CP437 to UTF-8 failed with the error: "Invalid argument 阅读全文

posted @ 2021-03-18 09:13 闹不机米 阅读(375) 评论(0) 推荐(0) 编辑

导航