====== Error ======
===== VS Codeで「ターミナルでpythonファイルを実行する」とSyntaxError: invalid syntax =====
VS Codeで「ターミナルでpythonファイルを実行」をするとどうしてもパスがエラーになりました。
{{:python:pasted:20210716-105247.png}}
単にREPLモード(対話モード)になっているだけでした。
>>>で始まっているのがその状態です。
コマンドパレットで、CTR+Zを実行すると、RERLモードを抜けて、ファイル実行できるようになりました。
===== BeatifulSoup4 =====
ERROR: Could not find a version that satisfies the requirement BeatifulSoup4 (from versions: none)
ERROR: No matching distribution found for BeatifulSoup4
はずかいしことに、単語のスペルミスでした。
BeatifulSoup4 ⇒ Bea**u**tifulSoup4
===== Graphviz =====
[[https://qiita.com/daimyo404/items/cbed720c6ed90945246b|GraphvizでExecutableNotFound(~systems' PATH)エラーが出るときの対処法]]
ExecutableNotFound: failed to execute 'dot', make sure the Graphviz executables are on your systems' PATH
CMD.exeでconda install python-graphvizを実行し、環境変数のpathにC:\Users\[user]\anaconda3\pkgs\graphviz-2.38-hfd603c8_2\Library\bin\graphvizを追加。
その後JupyterLabを再起動。
表示できました。
{{:python:pasted:20210730-170842.png}}