C:\Users\31167\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:/Users/31167/PycharmProjects/pythonProject1/main.py
Error processing line 1 of C:\Users\31167\PycharmProjects\pythonProject1\venv\lib\site-packages\_virtualenv.pth:
Fatal Python error: init_import_size: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "D:\python-3.8.1-amd64\lib\site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "C:\Users\31167\PycharmProjects\pythonProject1\venv\lib\site-packages\_virtualenv.py", line 40, in <module>
from functools import partial
File "D:\python-3.8.1-amd64\lib\functools.py", line 17, in <module>
from collections import namedtuple
File "D:\python-3.8.1-amd64\lib\collections\__init__.py", line 22, in <module>
from keyword import iskeyword as _iskeyword
File "C:\Users\31167\PycharmProjects\pythonProject1\keyword.py", line 0
SyntaxError: unknown encoding: utff-8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\python-3.8.1-amd64\lib\site.py", line 580, in <module>
main()
File "D:\python-3.8.1-amd64\lib\site.py", line 563, in main
known_paths = venv(known_paths)
File "D:\python-3.8.1-amd64\lib\site.py", line 495, in venv
addsitepackages(known_paths, [sys.prefix])
File "D:\python-3.8.1-amd64\lib\site.py", line 350, in addsitepackages
addsitedir(sitedir, known_paths)
File "D:\python-3.8.1-amd64\lib\site.py", line 208, in addsitedir
addpackage(sitedir, name, known_paths)
File "D:\python-3.8.1-amd64\lib\site.py", line 179, in addpackage
import traceback
File "D:\python-3.8.1-amd64\lib\traceback.py", line 3, in <module>
import collections
File "D:\python-3.8.1-amd64\lib\collections\__init__.py", line 22, in <module>
from keyword import iskeyword as _iskeyword
File "C:\Users\31167\PycharmProjects\pythonProject1\keyword.py", line 0
SyntaxError: unknown encoding: utff-8
Process finished with exit code 1
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星