简体   繁体   English

即使安装了configparser,也没有模块“ configparser”

[英]No module “configparser” even upon installing configparser

I installed python module configparser with pip install configparser and it installed 3.5.0. 我用pip install configparser安装了python模块configparser ,它安装了3.5.0。 Now, when I am using import configparser in my .py file, but then I am getting No module named configparser . 现在,当我在.py文件中使用import configparser时,却得到了No module named configparser Can someone explain why is this so and how can I fix it? 有人可以解释为什么会这样,我该如何解决? I have /usr/local/lib in my $PATH where configparser.py is? /usr/local/lib在我的$PATH哪里configparser.py是什么?

采用

from backports import configparser

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM