ImportError: No module named 'ConfigParser'
2015-08-24 16:11
716 查看
Resolve Method:
I found the problem. I had manually installed a newer version of
3.2 but the version installed through packages is 2.7) and I just redirected
Apparently in 3.2 some syntax used in
not valid anymore. Restoring the original link of
the problem. Now the scripts could be run without any issues.
the link: StackOverflow
按照这想法,我顺利解决了这个问题。
我的系统是ubuntu 14.04,安装了python2.7
看到这里后,安装了python3,并按顺序执行以下命令
# 修改python为python2
rm /usr/bin/python
ln -s /usr/bin/python2 /usr/bin/python
# 删除python-configparser,再通过aptitude来安装
sudo apt-get purge --auto-remove python-configparser
sudo aptitude install python-configparser
I found the problem. I had manually installed a newer version of
python(version
3.2 but the version installed through packages is 2.7) and I just redirected
/usr/bin/pythonto
python3.2.
Apparently in 3.2 some syntax used in
/usr/bin/pycleanis
not valid anymore. Restoring the original link of
/usr/bin/pythonto
/usr/bin/python2solved
the problem. Now the scripts could be run without any issues.
the link: StackOverflow
按照这想法,我顺利解决了这个问题。
我的系统是ubuntu 14.04,安装了python2.7
看到这里后,安装了python3,并按顺序执行以下命令
# 修改python为python2
rm /usr/bin/python
ln -s /usr/bin/python2 /usr/bin/python
# 删除python-configparser,再通过aptitude来安装
sudo apt-get purge --auto-remove python-configparser
sudo aptitude install python-configparser
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- Python动态类型的学习---引用的理解
- Python3写爬虫(四)多线程实现数据爬取
- 垃圾邮件过滤器 python简单实现
- 下载并遍历 names.txt 文件,输出长度最长的回文人名。
- ubuntu下chrome无法同步问题解决
- install and upgrade scrapy
- Scrapy的架构介绍
- Centos6 编译安装Python
- Ubuntu Linux使用体验
- 使用Python生成Excel格式的图片
- 让Python文件也可以当bat文件运行
- [Python]推算数独
- Python中zip()函数用法举例
- Python中map()函数浅析