错误信息:
File "c:/xxxx/xxxx/xxxx/xxxx.py",line 2, in <module>
from flask_script import Manager
ModuleNotFoundError: No module named 'cx_oracle'
Process finished with exit code 1
原因是没有添加第三方库,解决方法:
关闭窗口即可。
这时再看anaconda的库中就有了cx_oracle这个包:
如果在搜索框中搜索库的时候搜不到,可以cmd中使用pip install xxx,比如说我要安装flask_script:
python中下载的包路径是在上面的log信息中,去上面的路径中xxxx/Lib/site-packages中找到刚才安装的包,复制到anaconda的Lib/site-packages路径下。
这样anaconda中就有了这个包。