Skip to main content

How to Setup Virtual Environment in Python with venv

  • A virtual environment is the most used tool by the developers to isolate the dependencies for different projects.
  • Suppose you have two projects say porj1 and proj2. proj1 needs the Django dependency with version 3.2 but your proj2 needs the Django dependency with version 2.2. In this situation you need a virtual environment to keep the both version on your system separately. 

How to create virtual environment in python:

  1.  Decide a directory where you want to create the virtual environment. You can use your project directory or any other directory as per your wish.
  2.  Run the below command. Here`awesome_proj_env` is the folder where virtual environment will be created. if the folder does not exists then it will be created automatically.
    • python3 -m venv awesome_proj_env   
  3. Activate the virtual environment:
    1. On Linux/Mac OSX:
      • source awesome_proj_env/bin/activate 
    2. On Windows:
      • awesome_proj_env\Scripts\activate.bat
  4. Deactivate the virtual environment in Python: type "deactivate" on terminal to deactivate the current selected virtual environment.


  1. 132억원이 투자되는 춘천의 경우 시청 앞 교차로~두산위브아파트삼거리, 도청광장교차로~공지천사거리, 온의사거리~칠전사거리 등 60㎞ 구간에 스마트 교차로와 긴급차량 우선신호등 첨단신호제어시스템을 갖춘다. 실시간 교통량 수집을 통한 도심 교통난 해결이 목표다. 원주는 30억원을 투자해 만종교차로~기업도시사거리 등 20.4㎞에 교통정보 수집 및 정보제공 포커 게임 시스템을 구축하고 혁신도시 10㎞ 구간에 자율주행 시범운행지구를 도입한다. 속초는 도심 주요 도로 30㎞에 실시간 교통관리체계를 갖춰 교통정보를 신속히 제공해 운전자의 노선 선택을 돕는다. 또 삼척은 29.7㎞ 구간에 스마트교차로 등을 도입, 7번 국도의 정체를 완화한다는 계획이다. 속초와 삼척에는 각 50억원이 투입될 예정이다.

  2. Gives you a lot paylines to work with across a number of} sets of reels. Every every so often, we come 솔 카지노 across a on line casino that we advocate you avoid half in} on. We have a strict 25-step evaluate course of, looking at at} things like a site’s software, promotions, how straightforward the banking course of is, safety and more. When any of these steps fall below our standards, the on line casino is added to our record of web sites|of websites} to avoid.


Post a Comment

Popular posts from this blog

LinkList implementation with Insert, InsertAt, Delete Methods in Java

Linklist Representation   public class Node { int data ; Node next ; Node( int data , Node next ){ this . data = data ; this . next = next ; } } public class LinkList { Node head ; public void insert( int data ) { Node node = new Node( data , null ); if ( head == null ) { head = node ; } else { Node currentNode = head ; while ( currentNode . next != null ) { currentNode = currentNode . next ; } currentNode . next = node ; } } public void inserAtStart( int data ) { Node node = new Node( data , null ); node . next = head ; head = node ; } public void insertAt( int index , int data ) { Node node = new Node( data , null ); // if index is 0 or head is null then insert at start if ( index == 0 || head == null ) { inserAtStart( data ); } els

How to kill a process running on particular port in Linux

  If port 8080 needs to be kill use below single command: kill -9 $(lsof -t -i:8080) Note: remove -9 from the command, if you don't want to kill the process violently. To list any process listening to the port 8080: lsof -i:8080 Use any port number that you want to kill.

Basics of Java Programming - Part 1

Datatypes in Java int 4 bytes short int 2 bytes long int 8 bytes byte 1 byte float  4 bytes double 8 bytes char 2 bytes Character to ASCII conversion in JAVA          class CharToASCII { public static void main(String a []) { char c1 = 'A' ; char c2 = 'a' ; System. out .print(( int ) c1 ); // OUTPUT: 65 System. out .print(( int ) c2 ); // OUTPUT: 97 System. out .print(( char )66); // OUTPUT: B  --> ASCII to i nt conversion           }        } "printf" is also available in JAVA            class  PrintfInJava {              public   static   void  main(String  a []) { int   i  =  4 ; int   j  =  7 ;                   int   k  =  i+j ; System. out .printf("Addition of %d and %d is %d", i, j, k);  // OUTPUT: 65            }        } Binary  Literals