Python Microsoft Visual Studio 2019 Community PowerShell設定 新しいページはコチラ
提供: yonewiki
(→概要) |
(→概要) |
||
52行: | 52行: | ||
でも、このとき作成されたコマンドは正しいのですが、上手く動作しません。もう一度パワーシェルをVisual Studioから起動すると以下のようなエラーが表示されるようになったと思います。 | でも、このとき作成されたコマンドは正しいのですが、上手く動作しません。もう一度パワーシェルをVisual Studioから起動すると以下のようなエラーが表示されるようになったと思います。 | ||
+ | <syntaxhighlight2 lang="python"> | ||
<big><big>'''. : このシステムではスクリプトの実行が無効になっているため、ファイル C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile | <big><big>'''. : このシステムではスクリプトの実行が無効になっているため、ファイル C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile | ||
.ps1 を読み込むことができません。詳細については、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?LinkID=1 | .ps1 を読み込むことができません。詳細については、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?LinkID=1 | ||
57行: | 58行: | ||
発生場所 行:1 文字:3 | 発生場所 行:1 文字:3 | ||
+ . 'C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile.ps1' | + . 'C:\Users\[ユーザ名]\Documents\WindowsPowerShell\profile.ps1' | ||
− | + | + | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
+ CategoryInfo : セキュリティ エラー: (: ) []、PSSecurityException | + CategoryInfo : セキュリティ エラー: (: ) []、PSSecurityException | ||
+ FullyQualifiedErrorId : UnauthorizedAccess | + FullyQualifiedErrorId : UnauthorizedAccess | ||
'''</big></big> | '''</big></big> | ||
+ | </syntaxhighlight2> | ||
<syntaxhighlight2 lang="python"> | <syntaxhighlight2 lang="python"> |