Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profile.ps1 cannot be loaded when open Windows Powershell #4

Open
cuierd opened this issue Nov 9, 2023 · 1 comment
Open

profile.ps1 cannot be loaded when open Windows Powershell #4

cuierd opened this issue Nov 9, 2023 · 1 comment

Comments

@cuierd
Copy link
Collaborator

cuierd commented Nov 9, 2023

Describe the issue

This issue happened when I successfully installed miniconda and opened the Windows powershell. It says:
profile.ps1 cannot be loaded because running scripts is disabled on this system. [see screenshot bellow]

To Reproduce

  1. I downloaded miniconda as described in the guidelines/CONDA_ENVIRONMENT.md and installed it
  2. I saw this error message when I open the windows powershell without doing anything.
  3. I tried to run conda init powershell in my windows powershell, the error message is still there

Expected behavior

Activate the conda environment by first enter the default base environment

Screenshots

error_ps1

Devices

  • No Eye-tracker
  • Windows 11
@kasprowski
Copy link

Please take a look here: [https://stackoverflow.com/questions/64633727/how-to-fix-running-scripts-is-disabled-on-this-system]
In short: you must enable "running scripts" on your machine.
To do so:
1/ Run PoweShell as an Administrator (right-click and choose "Run as Administrator")
2/ Write and execute command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants