简体   繁体   English

Kali Linux 中 python、python2.7 和 python3 的一些问题

[英]Some issues with python, python2.7 and python3 in Kali Linux

I want to run a python program but I got this message:我想运行 python 程序,但收到此消息:

"SyntaxError: Non-ASCII character '\xc2' in file windows-exploit-suggester.py on line 1291, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details"

I tried with python, python2.7 and python3.我尝试使用 python、python2.7 和 python3。 I am using Kali Linux. Tried commenting this line but still having issues.我正在使用 Kali Linux。尝试评论这一行但仍然有问题。

Also I am having problems with xlrd library.我也遇到了 xlrd 库的问题。 I installed in many ways (pip, pip3, apt) it show me that the requeriment is satisfied but I am not able to run it.我以多种方式安装(pip、pip3、apt),它告诉我满足了要求,但我无法运行它。 Is an old script.是个老剧本。

[-] please install and upgrade the python-xlrd library

for python3:对于 python3:

pip3 install python-xlrd

for python2:对于 python2:

pip install python-xlrd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM