python - Atom 中的 "Script"在哪里?

标签 python atom-editor

我正在 basic.py 文件中导入plotly.offline,但是当我在 platform-ide-terminal 中运行此 basic.py 时,会出现错误并显示:ImportError: No module namedplotly.offline .

我确信plotly已经安装了pip。当我在 Mac 的默认终端中检查它时,

pip show plotly

上面写着,

Name: plotly
Version: 4.3.0
Summary: An open-source, interactive graphing library for Python
Home-page: https://plot.ly/python/
Author: Chris P
Author-email: chris@plot.ly
License: MIT
Location: /Users/Lorentz/opt/anaconda3/lib/python3.7/site-packages
Requires: retrying, six
Required-by: dash, chart-studio

我在终端中的默认 python 是 3.7。

所以我尝试将 Atom 的默认 python 设置为 3.7。我用谷歌搜索,我的答案建议通过Atom→Preferences→Open Config文件夹和open.atom/packages/script/lib/grammars/python.coffee来设置它。这是来自官网https://atom.io/packages/script

但我的问题是,在包下,我找不到脚本。

enter image description here

然后我尝试从顶部菜单中找到它,但仍然没有成功。

enter image description here

有人可以告诉我在哪里可以找到 python.coffee 文件吗?或者这个“脚本”实际上在哪里?

最佳答案

here并搜索脚本。找到后点击安装。或者去here并单击安装。

home/.atom 目录中有一个名为 init.coffee 的文件。我不知道 python.coffee 文件。

关于python - Atom 中的 "Script"在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59612036/

相关文章:

regex - 如何在 Atom 中替换换行符?

javascript - 为什么我的报价会出现语法错误?

atom-editor - 将智能感知添加到 Atom

python - django在gae(谷歌应用引擎)中是否有类似 'render_template'的方法

python - 在 Linux 服务器上使用 Selenium 运行 Scrapy Web Crawler

python - os.environ.setdefault ('DJANGO_SETTINGS_MODULE' 、 'folder.settings' ) 是做什么的?

javascript - 动态调整 Electron 应用程序窗口的大小

python - 使用 AWS Lambda Python API 向 AWS SQS 队列发送消息超时

python - 如何在 Python 中查找非字母数字字符并将其移动到字符串的末尾

autocomplete - 禁用 Atom 中的单个自动完成功能