英文:
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.
i then tried to locate it from top menu, still no luck.
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文件。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论