[demos] Fix flask demo run failure
This commit is contained in:
		
							parent
							
								
									8f9e8d52cb
								
							
						
					
					
						commit
						ea6e33e6f1
					
				@ -8,7 +8,7 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}"  )" >/dev/null 2>&1 && pwd )"
 | 
				
			|||||||
# 2. Install python and dependencies to specified position
 | 
					# 2. Install python and dependencies to specified position
 | 
				
			||||||
[ -f Miniconda3-latest-Linux-x86_64.sh ] || wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
 | 
					[ -f Miniconda3-latest-Linux-x86_64.sh ] || wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
 | 
				
			||||||
[ -d miniconda ] || bash ./Miniconda3-latest-Linux-x86_64.sh -b -p $script_dir/miniconda
 | 
					[ -d miniconda ] || bash ./Miniconda3-latest-Linux-x86_64.sh -b -p $script_dir/miniconda
 | 
				
			||||||
$script_dir/miniconda/bin/conda create --prefix $script_dir/python-occlum -y python=3.9.11 flask=2.2.2 flask-restful=0.3.9 jinja2=3.1.2  werkzeug
 | 
					$script_dir/miniconda/bin/conda create --prefix $script_dir/python-occlum -y python=3.9.11 flask=2.2.2 flask-restful=0.3.9 jinja2=3.1.2  werkzeug=2.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 3. Remove miniconda and installation scripts
 | 
					# 3. Remove miniconda and installation scripts
 | 
				
			||||||
rm -rf ./Miniconda3-latest-Linux-x86_64.sh $script_dir/miniconda
 | 
					rm -rf ./Miniconda3-latest-Linux-x86_64.sh $script_dir/miniconda
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user