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

Popular posts from this blog

GIT command

https://kbroman.org/github_tutorial/pages/branching.html Note:- Always get pull request before working on any branch git pull  branch name or  git pull  origin branch name To commit code git commit -m"comment for changes" To push the code git push origin staging To hold the branch in the same state git stash To get the stashed branch in normal mode git stash pop If code conflict during git command or reverting conflict occur while git pull or branch chekout git reset -hard HEAD To get in working branch or switch to another branch git checkout staging To create a new branch git checkout -b branch name