5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windos10 powershellでAnacondaを使う

Last updated at Posted at 2019-03-31

設定ファイルをどこに書けばいいのか調べる

PowerShell
> $profile
C:\Users\hayate\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

設定ファイル作成

>notepad C:\Users\hayate\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

メモ帳が起動したら、Anacondaのディレクトリをパスに追加する。

Microsoft.PowerShell_profile.ps1
# Anaconda
$Env:Path += ";C:\Users\hayate\Anaconda3\Library\bin\"
$Env:Path += ";C:\Users\hayate\Anaconda3\Scripts"

PowerShellの権限を設定

管理者権限でPowershellを起動して以下を入力

PowerShell
> Set-ExecutionPolicy RemoteSigned

確認

PowerShell
> conda -V
conda 4.5.12

activateできるようにする

> conda install -n root -c pscondaenvs pscondaenvs

参考

PowerShellでAnacondaを使う方法

5
3
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
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?