pycharm python3.5:can't open file './aaa.py': [Errno 2] No such file or directory

can’t open file ‘D:/PY/py3.xcode/Tz_course/test_field/aaa.py’: [Errno 2] No such file or directory

pycharm连接使用virtualBox上的ubuntu16的python3.5解析器运行本地python代码出错.
在这里插入图片描述

错误可能

  • python程序文件后缀名错误: test1.py.py 这样的文件是不能被执行的.
  • 配置了pycharm的ssh远程py解释器, 但是没有正确配置远程工作区: 这种情况会出现py解释找不到或打不开相应的程序文件, 因为远程机器上就没更新相关的程序文件, 自然就报错.

解决

只有第二种错误的…

pycharm远程开发的配置

从"设置使用远程python解释器"开始对比即可.


猜你喜欢

转载自blog.csdn.net/One_of_them/article/details/82805425