Add script to create Python virtual environment
This commit is contained in:
		
							
								
								
									
										8
									
								
								make-venv.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								make-venv.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
#! /usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
python3 -m venv .venv
 | 
			
		||||
./.venv/bin/pip install --upgrade pip
 | 
			
		||||
./.venv/bin/pip install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
echo "Add the following alias to your shell configuration file (e.g., .bashrc or .zshrc):"
 | 
			
		||||
echo "alias v_env='test -d $(pwd)/.venv && . $(pwd)/.venv/bin/activate'"
 | 
			
		||||
		Reference in New Issue
	
	Block a user