Sublime Text2 Import error: No module named Gnuplot

前端 未结 1 1689
再見小時候
再見小時候 2020-12-19 09:11

I\'m trying to use Gnuplot in a Python script I\'m writing in Sublime Text. Whenever I build, I get the error message

Traceback (most recent call last): 
            


        
相关标签:
1条回答
  • 2020-12-19 09:25

    Sublime Text 2 comes with its own Python interpreter which sets PYTHONPATH independently from the system Python interpreter you are referring to.

    Please see this question how to set a different PYTHONPATH for Sublime. Please note that if the library you are using was compiled against a different Python version than Sublime is using loading the native dynamically linked libraries will probably cause Sublime Text 2 to crash.

    https://stackoverflow.com/a/9919953/315168

    0 讨论(0)
提交回复
热议问题