【发布时间】:2019-10-02 22:09:07
【问题描述】:
我对如何在 PythonAnywhere 中安装/使用新模块感到困惑。
例如,我在 Bash 控制台中安装了模块 ephem
pip3.6 install --user ephem
一切顺利。如果我再次运行上述命令,它会说;
Looking in links: /usr/share/pip-wheels
Requirement already satisfied: ephem in ./.local/lib/python3.6/site-packages (3.7.7.0)
但是,当我尝试在我的脚本中使用它时,我得到:
Traceback (most recent call last): File "/home/krollibrius/montaulieu.py", line 7, in <module> import ephem ModuleNotFoundError: No module named 'ephem'
有人可以帮忙吗?
【问题讨论】:
标签: pythonanywhere