2

I want to use tvm in my project,but got "pycharm :No module named 'tvm'". And I have configurated tvm.If I use the terminal environment to run the project, I can successful run program. The main problem is I need the hint in the pycharm.I try to add the system environment in pycharm, but I don't know how to do.

JL Peyret
  • 10,917
  • 2
  • 54
  • 73
wenxin li
  • 29
  • 2

1 Answers1

3

In PyCharm, in Project Settings, you can choose Python Interpreter.

You need to set this to point to the same python or python.exe command you run in a terminal. Otherwise PyCharm will use some (other) Python interpreter installed on your computer.

In UNIX shell you can find out which python command is run by your terminal by typing which python.

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435