IronPython在Windows 7下的Python路径问题

3
在Windows 7上安装iropython后,会生成一个环境变量。
PYTHONPATH=C:\Program Files (x86)\IronPython 2.7\Lib

这个变量在Linux系统上很常见,我想将它扩展到文件夹c:\user...\pymodules中。我尝试使用以下方法:

PYTHONPATH=C:\Program Files (x86)\IronPython 2.7\Lib:c:\user\...\pymodules

并且

PYTHONPATH=C:\Program Files (x86)\IronPython 2.7\Lib;c:\user\...\pymodules

但是我两种方式都没有成功。

这个问题有解决方案吗?

1个回答

5
IronPython 的等效环境变量是 IRONPYTHONPATH

2
真遗憾,https://ironpython-test.readthedocs.org/en/latest/using/windows.html上的Iron Python文档没有提到这一点! - danio

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接