python3.8 引用环境问题
-
/usr/bin/python3.8 /home/jynlix/Downloads/src/angs_api_sca/api_sca_start.py
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib/python2.7/runpy.py", line 114, in _get_module_details
return _get_module_details(pkg_main_name)
File "/usr/lib/python2.7/runpy.py", line 119, in _get_module_details
code = loader.get_code(mod_name)
File "/usr/lib/python2.7/pkgutil.py", line 281, in get_code
self.code = compile(source, self.filename, 'exec')
File "/home/jynlix/Downloads/src/angs_api_sca/angs_api_sca/main.py", line 24
def optionxform(self, optionstr: str) -> str:
^
SyntaxError: invalid syntax使用虚拟环境或者conda解决
https://askubuntu.com/questions/1321421/how-to-remove-all-traces-of-python-from-ubuntu