0
0

More than 1 year has passed since last update.

Windows ServerにPython(pandas)環境を構築する

Posted at

背景

Windows ServerでPythonのバッチファイルを動かす要件があり、環境構築しました。
サーバーはWindows Server 2022です。

手順

Pythonインストール

  1. 以下からインストーラーをダウンロードする。
    https://pythonlinks.python.jp/ja/index.html

  2. ダウンロードしたインストーラーを右クリックし、「管理者として実行」を選択する。
    image.png

  3. 「Add python.exe to PATH」をチェックして、「Install Now」をクリックする。
    image.png

  4. インストール完了後、コマンドプロンプトを起動し、バージョン確認できればPythonのインストール完了となる。

    > python -V
    …
    Python 3.X.X
    

pandasインストール

  1. 続けてコマンドプロンプトでpandasをインストールする。

    > python -m pip install pandas
    
  2. pythonを起動し、以下のコマンドでバージョンが表示されればpandasのインストールも完了となる。

    > python
    …
    >>> import pandas as pd
    >>> print(pd.__version__)
    2.0.2
    
    exit()
    

参考URL

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0