The tutorial requires the installation of Flask using Pipenv on an empty folder (my file path /Users/matthewnickolls/Desktop/Flask). I am installing via the Terminal using a zsh shell but I am getting the following 'No such file or directory' error message shown below:
I can see that the error is a result of a failure to load the path for (what I assume is) creating the virtual environment:
(/bin/sh: /Users/matthewnickolls/.local/share/virtualenvs/matthewnickolls-ydr5OSCv/bin/pip: /Users/matthewnickolls/.local/share/virtualenvs/matthewnickolls-ydr5OSCv/bin/p: bad interpreter: No such file or directory)
But I cannot work out how to resolve that problem.
I have noticed there is a warning earlier on during the installation that I should be using Python 3.7 but I am in fact, according to the warning message, using Python 3.9. I wasn't aware I was using 3.9 and thought my default would be 3.7.
Would this be the problem? If so is there a way of specifying that I wish Pipenv to install using Python 3.7?
For additional information, I also had difficulties installing Pipenv following the instructions from the same tutorial. Eventually managed it using an alternative method by first installing Homebrew (which I installed on the recommendation of the Pipenv webpage). I don't know whether that is relevant to solving the above problem, but given it is a Homebrew installed Pipenv that I am using to try to install Flask, I thought it might be worth mentioning in case it is.
requirements.txt
file to say Python 3.9.0 instead of 3.7 – Mark Setchell