Python - Livewires console error

前端 未结 1 1722
南旧
南旧 2020-12-21 20:35

This is the third time pygame/livewires has led me to this website, and let it be the last! After installing \'Python 3.1.1\' for the book, \'Python Programming for the Abso

相关标签:
1条回答
  • 2020-12-21 21:13

    You should set your PATH and sys.path(the path modules are imported from) pointing to the same version of Python. Currently Python 3.1 executable is in your path, but it is using the modules of Python 3.4.

    • To fix your python executable path: https://docs.python.org/2/using/windows.html#finding-the-python-executable
    • To fix your sys.path: https://docs.python.org/2/using/windows.html#finding-modules

    And one way to have isolated versions of python on your system is using virtual-env: https://virtualenv.pypa.io/en/latest/

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