Pycharm常见使用问题和解决方法汇总

汇总了之前发布的博客,部分问题的解决办法请点击链接浏览。大部分都是实测有效的。

适用的Pycharm版本:2019.2.1 professional edition 或者Community版等。

 

1,打不开console / 无法运行程序:

报错:Error:Console process terminated with error:
bash: line 0: cd: C:/xxx/xxx: No such file or directory
SudoPasswordPrompt26xxxx4q3q8fd2

解决:

1)settings-build,execution,deployment-console-python console 设置好working directory和path mapping

https://bbs.csdn.net/topics/390984101

2)检查是否已成功上传文件

3)检查run-edit configuration-path mapping是否设置正确。全部需要path mapping的地方有三个,见2的链接

 

2,无法上传文件、下载文件(No files or folders found to process):https://blog.csdn.net/qxqxqzzz/article/details/104365128

3,菜单显示不全,需要手动添加项目。 

4,Failed to connect to Mir: Failed to connect to server socket:重新新建interpreter

5, Failed to transfer file 'D:\project...': could not write to...(Permission denied),需要修改拷贝过来的文件/文件夹权限

6,Failed to transfer file '...: could not close the output stream for file,可能服务器磁盘已满

7,Console控制台输出为Unicode乱码,使用json格式或dataframe格式输出

8,Error running 'tests': Can't run remote python interpreter: Can't get remote credentials for deploym,修改文件命名或者重新设置文件夹映射关系

9,ModuleNotFoundError: No module named 'tensorflow',Mac OS彻底重装tensorflow,配置pycharm

10,ModuleNotFoundError: No module named 'skimage',已经安装过的为什么没有?可能是安装路径不对需要重新安装!

11,Unable to init server: Could not connect: Connection refused,去掉服务器显示代码

12,OSError: `pydot` failed to call GraphViz.Please install Graph,安装GraphViz

13,_tkinter.TclError: couldn't connect to display,重新连接x-server或者卸载流氓代理软件

14, 显示不了图片 cannot connect to X server 10.xxx.xxx.xxx:0.0, 卸载流氓代理软件

15, Error running 'xxx': While creating remote tunnel for SshjSshConnection( @ )@540f4ad9: localhost:63342 == localhost:63342: Global request [global req for tcpip-forward] failed : 关闭当前项目,重新打开一下就好了,不用去改什么配置。还不行吗?那改一下设置:https://blog.csdn.net/weixin_41666001/article/details/103034737

 

 

你可能感兴趣的:(Python,报错,#,远程开发,/,监控)