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

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

问题描述

我想尝试使用 PyCharm 进行 sage 数学开发.平时我用eclipse做sage开发,现在想用PyCharm试试.

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.

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

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

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

第一行加载 sage 环境变量,其余行启动 eclipse.我怎样才能为 pyCharm 做同样的事情?(请注意,我使用 Mac 和 Ubuntu 进行 sage 开发;上述命令对两种操作系统都不可知)

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. 链接 1 接近我正在寻找的解决方案,但是我在任何地方都找不到 pyCharm.sh.
  2. 链接 2:Jetbrains 也没有给出明确的说明.
  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.

推荐答案

编辑(2020 年 4 月):现在似乎在 Toolbox App 设置中管理启动器脚本创建.请参阅工具箱应用公告 了解更多详情.

Edit (April 2020): It seems that launcher script creation is now managed in Toolbox App settings. See the Toolbox App announcement for more details.

--

  1. 打开应用程序 Pycharm
  2. 在菜单栏中查找工具
  3. 点击创建命令行启动器
  4. 查看在/usr/local/bin/charm中创建的launcher可执行文件
  5. 打开项目或文件只需输入 $char YOUR_FOLDER_OR_FILE
  1. Open Application Pycharm
  2. Find tools in menu bar
  3. Click Create Command-line Launcher
  4. Checking the launcher executable file which has been created in /usr/local/bin/charm
  5. Open project or file just type $ charm YOUR_FOLDER_OR_FILE

也许这就是您所需要的.

Maybe this is what you need.

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

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