His Masters' Voices Wiki

よろずのことの書き残し

ユーザ用ツール

サイト用ツール


python:env_ubuntu

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
python:env_ubuntu [2022/07/19 10:41] – [VS Codeインストール] nipa28python:env_ubuntu [2022/07/19 11:03] (現在) – [手順3 VS CodeをPython IDEとして使う] nipa28
行 218: 行 218:
 {{:python:pasted:20220719-103511.png}} {{:python:pasted:20220719-103511.png}}
  
-### VS Code起動+### VS Code起動、日本語化
  
 Codeを検索してアイコンから起動 Codeを検索してアイコンから起動
行 228: 行 228:
 {{:python:pasted:20220719-104047.png}} {{:python:pasted:20220719-104047.png}}
  
 +### Python拡張機能の導入
 +
 +Python拡張機能を検索して、インストール
 +{{:python:pasted:20220719-104329.png}}
 +
 +
 +
 +手順3 VS CodeをPython IDEとして使う
 +---
 +
 +VS Codeを起動
 +
 +プロジェクトフォルダを作って開く (`~/pipenv1/testProj`)
 +{{:python:pasted:20220719-105014.png}}
 +
 +プログラムを書く
 +{{:python:pasted:20220719-105420.png}}
 +
 +
 +実行環境の選択
 +ステータスバー右下の 「3.10.4 64bit」のあたりをクリック
 +インタープリターを選択 から PipEnv の仮想環境を選択
 +
 +{{:python:pasted:20220719-105707.png}}
 +
 +仮想環境に切り替わったことがステータスバーの表示の変化でわかる
 +{{:python:pasted:20220719-105918.png}}
 +
 +プログラムを実行する
 +{{:python:pasted:20220719-110107.png}}
 +
 +ウインドウ右下にターミナルが開いて、無事「hello world!!」出力された
 +{{:python:pasted:20220719-110212.png}}
  
python/env_ubuntu.1658194895.txt.gz · 最終更新: 2022/07/19 10:41 by nipa28