pythonの標準ライブラリ、Decimalのimportエラーを解決したいです。
python
1from decimal import Decimal 2 3d = Decimal(10) 4print(d) 5
デバッグコンソール出力内容:
ImportError: cannot import name 'Decimal'
やったこと
0. minicondaでpython3.6の環境(--name python3.6)を構築
0. linuxコマンド"which python"
/usr/local/miniconda3/envs/python3.6/bin/python
0. vscodeのsetting.json
"python.pythonPath":"/usr/local/miniconda3/envs/python3.6/bin/python"
0. vscodeのlaunch.json
"pythonPath": "${config:python.pythonPath}"
0. vscodeのtasks.json
"command": "${config:python.pythonPath}"
回答1件
あなたの回答
tips
プレビュー