pythonにてpandasをimportしたいです。以下のように表示され、うまくimportできません。どのように解決できるでしょうか?
◯実行したコード
import pandas as pd
customer_master = pd.read_csv('customer_master.csv')
customer_master.head()
◯結果
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/---/Dropbox/stpy/lab1/python100/no1.py", line 1, in <module>
import pandas as pd
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'pandas'
◯試したこと
python -m pip freeze
を試したところ
pandas==1.4.3
pandas-compat==0.1.1
などが入っていました。
非常に初歩的なところだとおもうのですが、検索して出てくる解決法をいくつか試したところ、どれもうまく解決できませんでした。ご教示いただけますと幸いです。

回答1件
あなたの回答
tips
プレビュー