Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

venv file not working in flask


starting from the beginning,

from the starterkit folder

>> . venv/Scripts/activate
venv/Scripts/activate:3: command not found: ^M
venv/Scripts/activate:70: parse error near `\n'

any ideas why this could happen?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (9)


Please use to bypass this issue:

python3.10 -m venv venv # assuming you have python 3.10 installe
source venv/bin/activate



Hi Roberto,

When you use it on Windows which step do you have the issue with? Do you still get the "command not found" error?

We will update the docs after we could reproduce the issue and update instructions to run the application.

Thanks



following up on this issue, any new progress? happy



the issue is not resolved until the documentation is updated properly, i tried running on windows and also found problems when setting up the project. if this is not solved i would request a refund



Hi Roberto,

Sorry for the inconvenience. We mainly use Windows while working with Flask. We will check the macOS and update the appropriate documentation for macOS.

Does the issue has been resolved?

Thanks



I have installed python, the documentation is not correct if followed step by step. recommend taking a look at the process for macOS



Hi Roberto,

Have you installed Python?


python --version


We will revise the docs.

Thanks



hello, i cant install flask if the environment cant be first activated, unless you need to make a new venv from scratch in which case the documentation step by step is not right



Hi Roberto,

Have you installed the Flask?


pip install Flask


Please try to run this command to check if the Flask is properly installed.


flask --version


The result should display something like this.


Python 3.11.1
Flask 2.2.2
Werkzeug 2.2.2


Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(