Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

why i am getting – file cannot be loaded because running scripts is disabled on this system

While loading a python file in pycharm i am getting the following warning, earlier it was not there also print('Hello') is working as expected but i am not able to install django.

File C:\Users\abhi\PycharmProjects\django_apps\venv\Scripts\activate.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see 
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
    + CategoryInfo          : SecurityError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Try to check this, it may be helpful.

Here’s how you can make it possible to run the PowerShell script:

Open the admin level terminal for Windows PowerShell or the IDE you
are currently using. Enter Get-ExecutionPolicy. It shows the policy
for the current PowerShell session. You can also enter
Get-ExecutionPolicy -List to list out the policies for all scopes.
get-execution-policy Change the execution policy for the scope you
want. The command you need for this purpose is: Set-ExecutionPolicy
-ExecutionPolicy <policy name> -Scope <scope>. In general, we
recommend using Set-ExecutionPolicy -Scope CurrentUser
-ExecutionPolicy RemoteSigned, as it is more secure. set-execution-policy If it doesn’t solve the issue, enter:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

Link

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading