“Script” 在 Atom 中在哪里?

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

Where is "Script" in Atom?

问题

我在我的basic.py文件中导入了plotly.offline,但当我在platform-ide-terminal中运行这个basic.py时,出现了一个错误,显示"ImportError: No module named plotly.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 Folder"来设置,然后打开.atom/packages/script/lib/grammars/python.coffee文件。这来自官方网站https://atom.io/packages/script

但我的问题是,在"packages"下,我找不到"script"。

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

是否有人可以告诉我在哪里找到python.coffee文件?或者实际上这个"script"在哪里?

英文:

I am importing plotly.offline in my basic.py file, but when i run this basic.py in the platform-ide-terminal, an error comes up and says, ImportError: No module named plotly.offline.

I am sure plotly is pip installed. When i checked it in the default Terminal in my Mac,

pip show plotly

it reads,

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

My default python in Terminal is 3.7.

So i am trying to set the default python of my Atom to 3.7. I googled and my answers are suggesting to set it through Atom→Preferences→Open Config Folder, and open.atom/packages/script/lib/grammars/python.coffee. This is from the official site https://atom.io/packages/script

But my problem is, under packages, i can't locate script.

“Script” 在 Atom 中在哪里?

i then tried to locate it from top menu, still no luck.

“Script” 在 Atom 中在哪里?

Would anyone please tell me where to locate the python.coffee file? or where actually is this "script"?

答案1

得分: 2

这里并搜索脚本。当找到它时,点击安装。或者到这里并点击安装。

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

英文:

Go here and search for script. When it is found click install. Or go here and click install.

There is a file named init.coffee in the home/.atom directory. I don't know of a python.coffee file.

huangapple
  • 本文由 发表于 2020年1月6日 20:21:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/59612036.html
匿名

发表评论

匿名网友

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

确定