LoginSignup
1
1

More than 5 years have passed since last update.

Windows Python環境うろ覚え with Anaconda

Last updated at Posted at 2017-12-10

windowsにおけるpython環境うろ覚え.
docker上の環境だとどうしても遅いので,localにインストールしたAnacondaでプロジェクトごとに環境を切り替えながら利用.

activate/deactivate (PowerShell)

  • Liquidmantis/PSCondaEnvs のactivate.ps1, deativate.ps1をactivate.bat, deactivate.batが存在するディレクトリに配置.
  • 競合怖いので名前かえとく.iactivate.ps1, ideactivate.ps1 .
  • 自分の環境では以下のディレクトリ.
    C:\Users\foo\Anaconda3\Scripts

仮想環境構築

  • 以下のコマンドでパッケージ全部入り.パッケージが不要なら末尾のanacondaを外す.
    conda create -n python36 python=3.6 anaconda
  • -n の後ろが環境名.
PS C:\Users\foo> iactivate python36
Activating environment "python36..."  
[python36] PS C:\Users\foo> ideactivate  
Deactivating environment "python36..."  
PS C:\Users\foo>  
1
1
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
1
1