0
点赞
收藏
分享

微信扫一扫

centos6 python 运行 easygui 排错

何晓杰Dev 2022-03-16 阅读 121

编译安装python3.6

https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
参考https://www.cnblogs.com/zimo-jing/p/11873413.html

Non-ASCII character ‘xe5’ in file

# -*- coding: UTF-8 -*-

安装pip

yum -y install pip
pip install 包名-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com    #采用国内的镜像源来加速

ModuleNotFoundError: No module named ‘global_state’

https://stackoverflow.com/questions/40588444/how-to-install-python3-tk-in-centos

1.
yum -y install tkinter tcl-devel tk-devel
to your python directory: vim ......./Python3.5.1/Modules/Setup.dist

2.
Remove comments from these lines:
_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
-L/usr/local/lib \
-I/usr/local/include \
-ltk8.5 -ltcl8.5 \ # default is 8.2 and you should change it to the version you installed in step1
-lX11
3.
./configure
make && make install
举报

相关推荐

0 条评论