Use vagrant as interpreter is not working

PyCharm 2023.2.1 (Professional Edition)

Vagrant 2.3.7

This is how I set the interpreter from vagrant, everythings looks fine, and I run the code inside the pycharm like:


if __name__ == '__main__':


I got 

PyDev console: starting.
Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
runfile('/tmp/x7X0ZeFi7c/', wdir='/tmp/x7X0ZeFi7c/')
Traceback (most recent call last):
 File "/home/vagrant/.pycharm_helpers/pydev/", line 364, in runcode
   coro = func()
 File "<input>", line 1, in <module>
 File "/home/vagrant/.pycharm_helpers/pydev/_pydev_bundle/", line 197, in runfile
   pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
 File "/home/vagrant/.pycharm_helpers/pydev/_pydev_imps/", line 11, in execfile
   stream =  # @UndefinedVariable
 File "/usr/lib/python3.8/", line 392, in open
   buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/x7X0ZeFi7c/’


How to make it work as PHPStorm.