Pycharm 运行时错误

Pycharm 运行时错误

当我尝试运行 Python 代码时遇到错误。这是我的开发环境:

  • 操作系统:Linux Mint,
  • 集成开发环境:Pycharm

整个错误图像: 在此处输入图片描述

这是您在图像上看到的错误消息:

/home/graminux/PycharmProjects/test/venv/bin/python /home/graminux/Desktop/myPyCode/LSTM_price_prediction.py
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007ff05310a740 (most recent call first):

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

这是什么问题?我该如何解决?

相关内容