No module named _tkinter
2017-01-20 18:37
176 查看
先运行个yum -y install tcl-devel tk-devel,不知道有没有用
下载了tk和tcl的.tar.gz文件
这样装上它们
然后要重装python
这时要编辑python的Modules/Setup.dist文件的tk相关的地方,具体不知道有没有用
主要在~/.bashrc文件加了这个
make python的时候才不报这些错:
Failed to build these modules: _tkinter
libtk8.*.so: cannot open shared object file: No such file or directory
这个LD_LIBRARY_PATH的设定是根据http://stackoverflow.com/questions/16026348/preparing-tkinter-and-sqlite3-for-python-installation-no-admin-rights
下载了tk和tcl的.tar.gz文件
这样装上它们
cd unix ./configure --prefix="/home/123/123" make make install
然后要重装python
这时要编辑python的Modules/Setup.dist文件的tk相关的地方,具体不知道有没有用
主要在~/.bashrc文件加了这个
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/123/123/lib"
make python的时候才不报这些错:
Failed to build these modules: _tkinter
libtk8.*.so: cannot open shared object file: No such file or directory
这个LD_LIBRARY_PATH的设定是根据http://stackoverflow.com/questions/16026348/preparing-tkinter-and-sqlite3-for-python-installation-no-admin-rights
相关文章推荐
- ImportError: No module named Tkinter
- Python:ImportError: No module named Tkinter
- No module named 'Tkinter'
- Python ImportError: No module named Tkinter
- pycharm运行tkinter报错ImportError: No module named tkinter
- Py2.7 no module named tkinter
- import Tkinter error, no module named tkinter: "Python may not be configured for Tk”
- “No Module Named Tkinter”解决
- Python no module named tkinter 的解决方法
- centos7上matplotlib 无法绘图,报错先ImportError: No module named Tkinter,后_tkinter.TclError: no display name
- ImportError:No module named Tkinter的解决方案
- No module named 'Tkinter'
- Linux下使用Python的Tkinter库出现的No module named _tkinter问题
- Py2.7 no module named tkinter
- No module named Tkinter
- Linux下使用Python的Tkinter库出现的No module named _tkinter问题
- python下setuptools的安装详解及No module named setuptools的解决方法
- [Environment Config]How to fix “ImportError: No module named scapy.all”
- python和matlab混合编程,并解决error "ImportError: No module named matlab.engine"
- ImportError: No module named scipy.sparse