“Pycharm Linux ‘cannot open Local Terminal'”

huangapple go评论114阅读模式
英文:

Pycharm Linux "cannot open Local Terminal"

问题

我一直在网上寻找如何在Pycharm中打开终端时解决此问题,但一切都是针对Windows的“cmd.exe”,或者解决方案根本不起作用。我只是想要在Django中使用终端。有谁知道如何解决这个问题吗?我正在使用运行Raspbian Linux的Raspberry Pi。当我尝试打开终端时,它显示以下内容:

无法打开本地终端
在/home/pi/PycharmProjects/web中无法启动[/bin/bash, --rcfile, /home/pi/Desktop/pycharm-community-2019.3.1/plugins/terminal/jediterm-bash.in, -i]

请查看您的idea.log(帮助 | 在文件管理器中显示日志)以获取详细信息。
英文:

I've been digging through the internet forever trying to find how to fix this issue on opening the terminal in Pycharm. Everything is either for Windows "cmd.exe" or the solution just does not work. I'm just trying to use the Terminal for Django. Does anyone know how to fix this? I'm using a Raspberry Pi running Raspbian Linux. Here's what it says when I try to open the terminal:

Cannot open Local Terminal
Failed to start [/bin/bash, --rcfile, /home/pi/Desktop/pycharm-community-2019.3.1/plugins/terminal/jediterm-bash.in, -i] in /home/pi/PycharmProjects/web

See your idea.log (Help | Show Log in File Manager) for the details.

答案1

得分: 6

好的。我遇到过相同的问题,以下是解决方法:

一旦安装了PyCharm,请按照以下步骤进行操作:

在树莓派上打开终端并输入:

git clone https://github.com/JetBrains/pty4j.git

cd pty4j/native

gcc -fPIC -c *.c

gcc -shared -o libpty.so *.o

** 现在,请小心检查你的PyCharm安装文件夹名称,并相应地写入它。

然后输入:

cp libpty.so /opt/*** pycharm *** /lib/pty4j-native/linux/x86/

完成!

英文:

OK . I had the same problem, and this is the solution:

ONce Pycharm Installed .. follow this steps

open terminal in your raspberry
and type:

git clone https://github.com/JetBrains/pty4j.git

cd pty4j/native

gcc -fPIC -c *.c

gcc -shared -o libpty.so *.o

** now .. be carefull , and check your installation Pycharm´s folder name and write it accordingly.

and type:

cp libpty.so /opt/*** pycharm *** /lib/pty4j-native/linux/x86/

done !

答案2

得分: 1

我在Ubuntu上的PyCharm社区版中遇到了相同的问题。通过清除无效缓存解决了这个问题。

  • 文件 -> 使缓存无效
  • 选择 '清除文件系统缓存和本地历史记录'
  • 选择 'VCS日志缓存和索引'
  • 选择 '使无效并重新启动'
英文:

I have the same issue in ubuntu PyCharm community edition. The issue resolved by clearing invalidate caches.

  • File -> Invalidate Cache
  • Select 'Clear file system cache and Local History'
  • Select 'VCS Log caches and indexes
  • Select 'Invalidate and Restart'

答案3

得分: 0

这是如何查看IDE日志的方法 链接

. 顶部菜单 -> 帮助 -> 压缩日志并在资源管理器中显示

英文:

Here is how to see idea log link

. top menu -> help -> Compress Logs and Show in Explorer

huangapple
  • 本文由 发表于 2020年1月4日 12:17:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/59587830.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定