Skip to main content

configuring python project in local


git clone https://devendra_kumarsingh@bitbucket.org/***********/automonitoring.git

1) create a virtual environment virtualenv automonitoring_env 
for python- 2.7 
   virtualenv -p /usr/bin/python automonitoring_env
2) cd automonitoring_env/   // ENVIRONEMNT FOLDER

3) source bin/activate

4) cd ../automonitoring  // PROJECT FOLDER 
5) pip install -r pip_req.txt 

To set a environment in pycharm -
1) click on app 
2) edit configuration
3) add environment- dev
then run 



  1. GET CLONE
  2. RUN- virtualenv PROJECT_FOLDER_NAME_env OR virtualenv -p /usr/bin/python fileupdate_env
  3. CD PROJECT_FOLDER_NAME_env THEN RUN-> . bin/activate OR source fileupdate_env/bin/activate
  4. CD ../SOURVE_CODE_FOLDER/ THEN RUN - pip install -r pip_req.txt 
  5. SET ENVIRONMENT-> CLICK ON APP-> EDIT CONFIGURATION THEN ADD-> “ENV AND VALUES DEV”

To set  a virtual environment in ubuntu-
1) pip install virtualenvwrapper 
2) vim ~/.bashrc
3) export WORKON_HOME=~/.virtualenvs
source /home/devendra/.local/bin/virtualenvwrapper.sh
4)  mkvirtualenv test_1
5) pycharm-> Menu-> File-> Setting-> Project:project name->Project Interpreter-> Right Corner setting icon add a folder path












Comments