0
1

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 1 year has passed since last update.

PycharmでTerminal起動エラーの解決方法

Posted at

PycharmでTerminalを起動すると以下のエラーになることがある。
その解決策。

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

新機能と改善のために最新の PowerShell をインストールしてください!https://aka.ms/PSWindows

このシステムではスクリプトの実行が無効になっているため、ファイル <省略>\venv\Scripts\activate.ps1 を読み込むことができません。詳細に
ついては、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?LinkID=135170) を参照してください。
    + CategoryInfo          : セキュリティ エラー: (: ) []、ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

解決方法

コミュニティに解決策があった。

I changed the value of the option:
File \ Settings \ Tools \ Terminal \ Shel path
from
C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
to
C:\WINDOWS\system32\cmd.exe
and restarted Pycharm.
The virtual environment started automatically.

File > Settings > Tools > Terminal > Shel path
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
C:\Windows\system32\cmd.exeに変更すればよい。

0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?