Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Initiating the Generator: You don't appear to have Python installed. - Python 3.7 #4

Open
Kilo59 opened this issue Jul 20, 2018 · 3 comments

Comments

@Kilo59
Copy link

Kilo59 commented Jul 20, 2018

Error

I attempted to follow the quickstart example running inside a pipenv shell.
I DO have Python 3.7 installed.

# yo flask-api my-cool-api

     _-----_     ╭──────────────────────────╮
    |       |    │    Welcome to the most   │
    |--(o)--|    │ cromulent Flask REST API │
   `---------´   │        generator!        │
    ( _´U`_ )    ╰──────────────────────────╯
    /___A___\   /
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? Which flavor of database will you be using with your API?
Make sure you've got it installed first, of course! (Use arrow keys)
> PostgreSQL
  MySQL
  SQLite
  None / Other
You don't appear to have Python installed. You should fix that post-haste! Try running me again when you have that sorted out.

Error flask-api my-cool-api

Aborting generation.

Environment Info

OS: Windows10
Python: 3.7.0
NPM Version:
{ npm: '6.2.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.11.3',
  openssl: '1.0.2o',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.54',
  zlib: '1.2.11' }

Python 3.7 Environment

Package      Version
------------ -------
click        6.7
flake8       3.5.0
Flask        1.0.2
itsdangerous 0.24
Jinja2       2.10
MarkupSafe   1.0
mccabe       0.6.1
pip          10.0.1
pycodestyle  2.3.1
pyflakes     1.6.0
setuptools   40.0.0
Werkzeug     0.14.1
wheel        0.31.1

image

@Kilo59 Kilo59 changed the title Error Initiating the Generator: You don't appear to have Python installed. Error Initiating the Generator: You don't appear to have Python installed. - Python 3.7 Aug 6, 2018
@saebyeok
Copy link

Did you fix it? I am having the same problem.

@langdon
Copy link

langdon commented Feb 8, 2019

I was attempting to run this in a container. The container does not have "which" installed. I got around this error by a) making sure I had /usr/bin links to python & pip b) making sure I had which installed (the app uses which to find python)

@bschaatsbergen
Copy link

pls fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants