【发布时间】:2021-09-17 00:10:56
【问题描述】:
我知道我已经安装了 matplotlib,但是在尝试运行它时出现错误。我尝试按照here 的步骤进行操作。但是当我再次运行它时,我得到以下信息:
python -u "/Users/MacBook/python/code/stats.py"
/Users/MacBook/.fzf.zsh:source:13: no such file or directory: /Users/xxxxx 1/.fzf/shell/key-bindings.zsh
/Users/MacBook/.zshrc:export:2: not valid in this context: Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/bin:/usr/vac/bin:/usr/vacpp/bin:.:/Users/xxxxx
MacBook@MacBook-Air python % python -u "/Users/MacBook/python/code/stats.py"
Traceback (most recent call last):
File "/Users/MacBook/python/code/stats.py", line 2, in <module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
这发生在 VS 代码中:我正在运行 python 3.9.4
【问题讨论】:
标签: python visual-studio matplotlib