Atom中的“脚本”在哪里?

问题描述 投票:1回答:1

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

我确定已安装了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: [email protected]
License: MIT
Location: /Users/Lorentz/opt/anaconda3/lib/python3.7/site-packages
Requires: retrying, six
Required-by: dash, chart-studio

我在Terminal中的默认python是3.7。

所以我试图将Atom的默认python设置为3.7。我用谷歌搜索,我的答案建议通过Atom→Preferences→Open Config Folder, and open.atom/packages/script/lib/grammars/python.coffee进行设置。来自官方网站https://atom.io/packages/script

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

enter image description here

然后我尝试从顶部菜单中找到它,仍然没有运气。

enter image description here

[谁能告诉我python.coffee文件的位置吗?或“脚本”实际上在哪里?

python atom-editor
1个回答
2
投票

转到here并搜索脚本。找到后,单击安装。或转到here并单击安装。

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

© www.soinside.com 2019 - 2024. All rights reserved.