|
楼主 |
发表于 2019-12-8 09:26
|
显示全部楼层
来自: 中国浙江嘉兴
我把PYTHONHOME指向低版本的PYTHON,然后到PYTHON38下运行,问题依旧:
D:\Program Files\Python\Python38>py
Python path configuration:
PYTHONHOME = 'C:\Python23;C:\Python23\Scripts;C:\Tribon\M3\Bin\python'
PYTHONPATH = 'C:\Tribon\M3\Vitesse;C:\Tribon\M3\Vitesse\Basic_Design;C:\Tribon\M3\Vitesse\Lib;C:\Tribon\M3\Vitesse\Projects;C:\Tribon\M3\bin\python;'
program name = 'D:\Program Files\Python\Python38\python.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'D:\\Program Files\\Python\\Python38\\python.exe'
sys.base_prefix = 'C:\\Python23;C:\\Python23\\Scripts;C:\\Tribon\\M3\\Bin\\python'
sys.base_exec_prefix = 'C:\\Python23;C:\\Python23\\Scripts;C:\\Tribon\\M3\\Bin\\python'
sys.executable = 'D:\\Program Files\\Python\\Python38\\python.exe'
sys.prefix = 'C:\\Python23;C:\\Python23\\Scripts;C:\\Tribon\\M3\\Bin\\python'
sys.exec_prefix = 'C:\\Python23;C:\\Python23\\Scripts;C:\\Tribon\\M3\\Bin\\python'
sys.path = [
'C:\\Tribon\\M3\\Vitesse',
'C:\\Tribon\\M3\\Vitesse\\Basic_Design',
'C:\\Tribon\\M3\\Vitesse\\Lib',
'C:\\Tribon\\M3\\Vitesse\\Projects',
'C:\\Tribon\\M3\\bin\\python',
'',
'D:\\Program Files\\Python\\Python38\\python38.zip',
'C:\\Python23',
'C:\\Python23\\Scripts',
'C:\\Tribon\\M3\\Bin\\python\\DLLs',
'C:\\Python23',
'C:\\Python23\\Scripts',
'C:\\Tribon\\M3\\Bin\\python\\lib',
'D:\\Program Files\\Python\\Python38',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
File "C:\Tribon\M3\bin\python\encodings\__init__.py", line 109
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
Current thread 0x00002f4c (most recent call first):
<no Python frame>
D:\Program Files\Python\Python38> |
|