Question: Why am I getting the error from flask import Flask, request ^ ModuleNotFoundError: No module named 'flask' Tunction from hashlib import sha256 import json import

Why am I getting the error

from flask import Flask, request

^

ModuleNotFoundError: No module named 'flask'

Why am I getting the error from flask import Flask, request ^

Tunction from hashlib import sha256 import json import time No further documentation available from flask import Flask, request import requests class Block: def __init_(self, index, transactions, timestamp, previous_hash, A function that initialize block. AF AFF Variable explorer Help Plots Files BF BF def compute_hash(self): A function that return the hash of the block contents. 11 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 block_string = json.dumps (self._dict_sort_keys= True) Console 1/A = = PIL.Image, PIL.Imagerode, PIL.LITTiags, PIL. _binary, PIL._util, PIL._imaging, cffi, cffi.api, cffi.lock, cffi.error, cffi.model Traceback (most recent call last): return sha256(block_string.encode()).hexdigest() File "C: class Blockchain: # difficulty of our Pow algorithm difficulty = 2 - py", line 1, in from flask import Flask def init__(self): AF AF F ModuleNotFoundError: No module named 'flask' A function that initialize blockchian. AF AF AF self.unconfirmed_transactions = [] IPdb [80]: self.chain = [] self.create_genesis_block() IPython console History

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!