1. Anaconda SQLite报错
windows环境下重装anaconda容易漏掉安装sqlite的dll,因为注册表中还有这个遗留信息,导致sqlite需要的的dll并没有被安装。 会出现类似于下面的报错:
代码语言:javascript复制File "D:ProgramDataAnaconda3libsqlite3__init__.py", line 23, in
from sqlite3.dbapi2 import *
File "D:ProgramDataAnaconda3libsqlite3dbapi2.py", line 27, in
from _sqlite3 import *
这时,从官方网站下载对应的zip包,将里面的DLL文件放入Anaconda安装目录的DLLs文件夹下,即可
2. Pycharm报SSL导入报错, DLL找不到
这个也是windows环境下重装anaconda注册表问题,将anaconda的各种lib目录的添加到程序的环境变量即可,我的是:
代码语言:javascript复制d:ProgramDataAnaconda3;d:ProgramDataAnaconda3Librarymingw-w64bin;d:ProgramDataAnaconda3Libraryusrbin;d:ProgramDataAnaconda3Librarybin;d:ProgramDataAnaconda3Scripts;d:ProgramDataAnaconda3bin;d:ProgramDataAnaconda3;d:ProgramDataAnaconda3Librarymingw-w64bin;d:ProgramDataAnaconda3Libraryusrbin;d:ProgramDataAnaconda3Librarybin;d:ProgramDataAnaconda3Scripts;