Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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'

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions