Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python---环境异常 #103

Open
AronChung opened this issue Mar 22, 2021 · 0 comments
Open

python---环境异常 #103

AronChung opened this issue Mar 22, 2021 · 0 comments
Projects

Comments

@AronChung
Copy link
Owner

AronChung commented Mar 22, 2021

ImportError: No module named ‘_tkinter

  1. 首先使用以下命令查看模块是否存在?
    yum list installed | grep ^tk
    正常会有三个:
tk.x86_64
tk-devel.x86_64
tkinter.x86_64

若有缺失则通过yum install安装

yum install -y tkinter
yum install -y tk-devel

然后对python重新编译

若python是编译后版本,则需要重新安装一个
https://blog.csdn.net/singebogo/article/details/79698375

安装pyhs2:fatal error: pyconfig.h: No such file or directory

解决方法:

sudo yum install gcc-c++ python-devel.x86_64 cyrus-sasl-devel.x86_64
sudo pip install sasl
sudo pip install pyhs2

pip bad interpreter: No such file or directory

解决方法:
vim pip看下第一行的地址对不对,不对就改为当前地址

@AronChung AronChung added this to Python in My Blog Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
My Blog
  
Python
Development

No branches or pull requests

1 participant