Stats: 3,228,541 members, 8,074,813 topics. Date: Monday, 10 February 2025 at 08:52 AM |
Nairaland Forum / Science/Technology / Programming / Need Help On Flask Installation On Pc (462 Views)
Need Help On Linux Installation On Windows Laptop / Django And Flask Users, Your Help Is Needed Please / Cocos2d-x Installation On Linux (2) (3) (4)
Need Help On Flask Installation On Pc by Temyaz(m): 12:53pm On Jun 27, 2024 |
I was trying to install flask with pip install flask but it's not working. So i tried installing it with virtual environment but after when i want to activate virtual environment the command prompt show error 'that scripts is disable on my window '. Pls i need help |
Re: Need Help On Flask Installation On Pc by EMMY4j: 5:11pm On Jun 27, 2024 |
What is the error you’re getting with pip? |
Re: Need Help On Flask Installation On Pc by Temyaz(m): 1:13am On Jun 28, 2024 |
EMMY4j:
|
Re: Need Help On Flask Installation On Pc by PulsingPurple(m): 1:51am On Jun 28, 2024 |
Temyaz: Here's a reply from AI... Absolutely! Let's troubleshoot this Flask installation issue. Here's a breakdown of the problem and steps to resolve it: Understanding the Issue: The error "scripts is disabled on this system" typically arises due to Windows PowerShell's execution policy. By default, it prevents the execution of scripts (including those used to activate virtual environments) for security reasons. Resolution Steps: Check Execution Policy: Open PowerShell as an administrator and run Get-ExecutionPolicy. The output will likely be "Restricted." Change Execution Policy (Temporarily): To allow script execution for the current session, run Set-ExecutionPolicy RemoteSigned. This enables you to activate your virtual environment. Change Execution Policy (Permanently): For a lasting solution, run Set-ExecutionPolicy RemoteSigned -Scope CurrentUser. This changes the execution policy for your user account. Activate Virtual Environment: Navigate to your project directory in the command prompt or PowerShell and run the activation script (e.g., venv\Scripts\activateor venv\Scripts\activate.ps1). Install Flask: After activating the virtual environment, run pip install Flask. It should now install without issues. Additional Tips: Alternative Activation: If you're using PowerShell, try running the activation script with . .\venv\Scripts\activate.ps1instead of just venv\Scripts\activate.ps1. Python Version: Ensure you're using a compatible Python version for Flask. Permissions: Make sure you have the necessary permissions to create and modify files in your project directory. Important Note: Changing the execution policy can have security implications. If you're unsure, consider consulting with someone knowledgeable about system administration before making this change. Hoping it helps...
|
Re: Need Help On Flask Installation On Pc by Temyaz(m): 11:02pm On Jun 28, 2024 |
Thanks |
Re: Need Help On Flask Installation On Pc by Temyaz(m): 12:13am On Jun 29, 2024 |
PulsingPurple: 1 Share
|
Re: Need Help On Flask Installation On Pc by PulsingPurple(m): 11:05am On Jun 29, 2024 |
Re: Need Help On Flask Installation On Pc by Temyaz(m): 5:21pm On Jun 29, 2024 |
PulsingPurple:thanks so much. What you give me is legit it just that i'll need internet connection for pip to install the flask |
Re: Need Help On Flask Installation On Pc by PulsingPurple(m): 5:35pm On Jun 29, 2024 |
Temyaz: Ohh I see You're welcome bro. I could drop some data to the number in your signature if you don't mind |
Re: Need Help On Flask Installation On Pc by Temyaz(m): 11:08pm On Jun 29, 2024 |
PulsingPurple:thanks for you trying to be there. Don't worry to drop data. Cuz if you do it's not useful. I'm using keypad phone there's no way i can use it to connect to my pc for network. 1 Like |
Re: Need Help On Flask Installation On Pc by Temyaz(m): 7:47pm On Jul 09, 2024 |
PulsingPurple:good day bro. I was able to install flask and other python libraries like jinja2,pymsql, and werkzeug and more with pip. Through hotspot data connection i was able to do all the installation. Thanks for sharing your idea with me. And also for looking out to solve the pip error |
Re: Need Help On Flask Installation On Pc by PulsingPurple(m): 9:13pm On Jul 09, 2024 |
Temyaz: Good Evening boss... Which other pip error is that? Can you drop the error message and what you were trying to do? |
Re: Need Help On Flask Installation On Pc by Temyaz(m): 10:07pm On Jul 13, 2024 |
PulsingPurple:i'm talking about the previous error you help me with 1 Like |
Re: Need Help On Flask Installation On Pc by PulsingPurple(m): 10:53pm On Jul 13, 2024 |
Temyaz: Ohh my slow brain... You're welcome chief 🙌🏽 1 Like |
(1) (Reply)
Terrahaptix Opens African Largest Drone Factory in Abuja / . / Need A Young Programmer Experienced In Full Stack (java & Javascript)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2025 Oluwaseun Osewa. All rights reserved. See How To Advertise. 29 |