我正在尝试使用导入另一个脚本的脚本的python脚本。但是,它会在执行此操作时更改python的版本,从而使语法无效。有没有办法让python使用特定版本?
注意:我没有su权限
编辑1:
2.7.9 (default, May 2 2016, 17:03:26)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]
2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
Traceback (most recent call last):
File "script.py", line 29, in <module>
from folder1 import script1
File "folder/script1.py", line 6, in <module>
from folder2 import script2
File "folder2/script2.py", line 234
covered_isoform_fraction_max = {id_isoform: isoforms_covered_fraction[id_isoform] for id_isoform in ids_isoforms_max}
^
SyntaxError: invalid syntax