从命令行(终端)启动Pycharm [英] Launch Pycharm from command line (terminal)

查看:455
本文介绍了从命令行(终端)启动Pycharm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试PyCharm进行圣人数学开发。通常我运行eclipse来进行鼠标开发,但现在我想使用PyCharm来尝试。



要使用sage环境变量启动eclipse,在命令行中我通常会执行以下操作:

  sage -sh 
cd / path / to / eclipse
./eclipse

第一行加载sage环境变量,其余的启动eclipse。如何为pyCharm做同样的事情? (请注意,我正在使用Mac和Ubuntu进行鼠标开发;上述命令与两个操作系统无关)


  1. 链接1 接近我正在寻找的解决方案,但是我无法在任何地方找到pyCharm.sh。



您可以使用open命令从Mac终端启动 Pycharm 。只需输入 open / path / to / App

 应用程序$ ls  - lrt PyCharm\ CE.app/ 
total 8
drwxr-xr-x @ 71 amit admin 2414 Sep 24 11:08 lib
drwxr-xr-x @ 4 amit admin 136 Sep 24 11:08 help
drwxr-xr-x @ 12 amit admin 408 9月24日11:08插件
drwxr-xr-x @ 29 amit admin 986 Sep 24 11:08 license
drwxr- xr-x @ 4 amit admin 136 Sep 24 11:08骨架
-rw-r - r - @ 1 amit admin 10 Sep 24 11:08 build.txt
drwxr-xr-x @ 6 amit admin 204 Sep 24 11:12目录
drwxr-xr-x @ 14 amit admin 476 Sep 24 11:12 bin
drwxr-xr-x @ 31 amit admin 1054 Sep 25 21:43 helpers
/应用程序$
/应用程序$ open PyCharm\ CE.app/


I want to try out PyCharm for sage mathematics development. Normally I run eclipse to do sage development, but now I want to try it with PyCharm.

To launch eclipse with sage environment variables, in command line I normally do the following:

sage -sh
cd /path/to/eclipse
./eclipse

The first line loads the sage environment variables, the remainder launches eclipse. How can I do the same thing for pyCharm? (note I am using a Mac and Ubuntu for sage development; the commands above are agnostic to both OSes)

  1. Link 1 is close to the solution I am looking for, however I cannot find a pyCharm.sh anywhere.
  2. Link 2: Jetbrains does not give clear instructions either.

解决方案

You can launch Pycharm from Mac terminal using the open command. Just type open /path/to/App

Applications$ ls -lrt PyCharm\ CE.app/
total 8
drwxr-xr-x@ 71 amit  admin  2414 Sep 24 11:08 lib
drwxr-xr-x@  4 amit  admin   136 Sep 24 11:08 help
drwxr-xr-x@ 12 amit  admin   408 Sep 24 11:08 plugins
drwxr-xr-x@ 29 amit  admin   986 Sep 24 11:08 license
drwxr-xr-x@  4 amit  admin   136 Sep 24 11:08 skeletons
-rw-r--r--@  1 amit  admin    10 Sep 24 11:08 build.txt
drwxr-xr-x@  6 amit  admin   204 Sep 24 11:12 Contents
drwxr-xr-x@ 14 amit  admin   476 Sep 24 11:12 bin
drwxr-xr-x@ 31 amit  admin  1054 Sep 25 21:43 helpers
/Applications$
/Applications$ open PyCharm\ CE.app/

这篇关于从命令行(终端)启动Pycharm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆