Py学习  »  Python

【新手求教】pyinstaller 问题

zhujy306 • 8 年前 • 2235 次点击  

1)我电脑同时装了python2.7与python3.6,这样在命令提示符下运行pyinstaller 时他会用那个版本的python进行打包?

2)运行pyinstaller xxx.py时一直报“”UnicodeDecodeError: 'ascii' codec can't decode byte 0xc7 in position 22: ordinal not in range(128)“”这个错误

求大神指点 (我的pyinstaller是3.2.1版本)

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/2932
 
2235 次点击  
文章 [ 2 ]  |  最新文章 8 年前
Py站长
Reply   •   1 楼
Py站长    8 年前

第二个是编码的问题

试下这个

# encoding=utf8  
import sys  

reload(sys)  
sys.setdefaultencoding('utf8')
Py站长
Reply   •   2 楼
Py站长    8 年前

最好 删除掉某一个 python

可以通过 python --version 知道你当前cmd下面是用哪个版本的