Skip to content

Failing to install the my project in the virtual environment #5151

Closed Answered by EliseRemise
Alwoch asked this question in Q&A
Discussion options

You must be logged in to vote

I ran into this problem following the flaskr tutorial. The problem lies in the other directories in the root folder created earlier in the tutorial (instances and tests). This confuses pip install as well as build automation. You are offered the solutions 1-3 but those are not very clear on howto if you are new to creating packages and wheels in python. Easiest is number 3 by adding the following lines to your pyproject.toml file:

[tool.setuptools]
packages = ["flaskr"]

Now pip install and build have the package explicitly defined an do there thing without overthinking the presence of other directories. Maybe someone can add this to the tutorial so newcomers don't get confused ?

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Alwoch
Comment options

@umair313
Comment options

@umair313
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Alwoch
Comment options

Answer selected by Alwoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants