python package installed in pipenv but says no module found [duplicate]

55
February 02, 2019, at 12:50 PM

This question already has an answer here:

  • Flask app getting error of “could not locate flask application. …FLASK_APP environment variable” for Flask Migrate 1 answer

I install flask with pipenv, but cannot import the package.

python 3.6.8, pipenv 2018.11.26

$ pipenv install flask
Installing flask…
Adding flask to Pipfile's [packages]…
Installing dependencies from Pipfile.lock (a18377)…
✔ Installation Succeeded 
  	
Answer 1

It looks like you are installing the package using pipenv, however, you have to enter the virtual environment created by pipenv to actually use the packages installed.

First, install the package using pipenv install flask

Now, you have two options to run anything in the virtual environment with flask installed.

  1. pipenv run flask - which will directly run flask command, without the need for you to source the virtual environment.

  2. pipenv shell and python -c 'import flask' - which will work exactly like virtual environment, by sourcing the virtual environment and then running using the python of it.

READ ALSO
Why validation accuracy remains at 75% while train accuracy is 100 %?

Why validation accuracy remains at 75% while train accuracy is 100 %?

I used my own data set to train a model using retrainpy file from Tensorflow site

42
What is the scope of PHP set_time_limit()?

What is the scope of PHP set_time_limit()?

I still don't fully understand how set_time_limit() works, and the documentation didn't say anything about scopeLets say I have the following code:

29
When I get the file from s3 bucket, i can download in html page, but unable to view the pdf file

When I get the file from s3 bucket, i can download in html page, but unable to view the pdf file

I want to view the pdf file from S3 bucket in html using iframe/embed tagAnd the answer is :

15