如果我的 Mac 中有 3.x python 版本,为什么 PythonTeX 运行 2.x 版本?

问题描述

在终端中运行命令 pythontex 时,出现此错误

Traceback (most recent call last):
  File "/Library/TeX/texbin/pythontex",line 50,in <module>
    import pythontex2 as pythontex
  File "/usr/local/texlive/2021/texmf-dist/scripts/pythontex/pythontex2.py",line 61,in <module>
    from pygments.styles import get_all_styles
ImportError: No module named pygments.styles

这让我感到困惑的两个原因:

  • 如果我将 Python 3.7 版本作为主要版本,它为什么要运行 pythontex2
  • 为什么他找不到模块 pygments

我正在使用配备 M1 的 MacBook,如果这有用的话。

提前谢谢你。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)