以下の記事を参考にし、Pythonの環境構築を行いました。
VS Code構築手順
https://www.sejuku.net/blog/40607#Python
Anaconda で Python 環境をインストールする
https://qiita.com/t2y/items/2a3eb58103e85d8064b6#anaconda-%E3%81%A8%E3%81%AF-
VS Codeで以下のhelloworld.pyを実行したところ、エラーが発生しました。
どなたか、ご教授お願いします。
helloworld.pyファイル
print('Hello, World!')
エラー内容
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. PS C:\pythonstudy> cd c:\pythonstudy && cmd /C "set "PYTHONIOENCODING=UTF-8" && set "PYTHONUNBUFFERED=1" && C:\Anaconda3\python.exe c:\Users\Tsutsumi.vscode\extensions\ms-python.python-2018.10.1\pythonFiles\experimental\ptvsd_launcher.py --client --host localhost --port 50637 c:\pythonstudy.vscode\helloworld.py " 発生場所 行:1 文字:19 cd c:\pythonstudy && cmd /C "set "PYTHONIOENCODING=UTF-8" && set "PYT ... ~~ トークン '&&' は、このバージョンでは有効なステートメント区切りではありません。 + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : InvalidEndOfLine
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/11/17 07:33