257

More than 1 year has passed since last update.

posted at

updated at

[備忘] python / conda環境構築の基本コマンド一覧

python、condaで環境構築を行う際の基本的なコマンドをまとめました。

  • pipのアップデート
  • pip install -U pip
    pip install --upgrade pip
    
  • パッケージのインストール
  • pip install packageName
    
  • バージョン指定でインストール
  • pip install 'packageName==1.1.2'
    
  • パッケージのアップデート( -U or —update)
  • pip install -U packageName
    
  • パッケージのアンインストール
  • pip uninstall -y packageName
    
  • パッケージの確認
  • pip list # list
    pip  pip list -o # show outdated
    
  • パッケージバージョンの確認
  • pip freeze
    
  • 設定ファイルの書き出し
  • pip freeze > requirements.txt # create package list
    
  • 設定ファイルの読み込み
  • python -m pip install -r requirements.txt
    
  • conda user guide
  • 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
    What you can do with signing up
    257