python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -


i getting same error when python manage.py runserver. there no such error when have ubuntu 15.10. got started when upgraded ubuntu 16.04. question might duplicate have tried solution provided question have applied command dpkg --configure -a, have done apt-get update,upgrade,dist-upgrade, clean, -f install. have reinstalled python2.7 , python3 no success though. here screenshot while trying run django application enter image description here

i got after re-installing python

enter image description here please me?

bashrc file

# ~/.bashrc: executed bash(1) non-login shells. # see /usr/share/doc/bash/examples/startup-files (in package bash-doc) # examples  # if not running interactively, don't case $- in     *i*) ;;       *) return;; esac export pythonhome="/usr/bin/python" echo $virtualenvwrapper_python echo 'tushant' # don't put duplicate lines or lines starting space in history. # see bash(1) more options histcontrol=ignoreboth  # append history file, don't overwrite shopt -s histappend  # setting history length see histsize , histfilesize in bash(1) histsize=1000 histfilesize=2000  # check window size after each command and, if necessary, # update values of lines , columns. shopt -s checkwinsize  # if set, pattern "**" used in pathname expansion context # match files , 0 or more directories , subdirectories. #shopt -s globstar  # make less more friendly non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(shell=/bin/sh lesspipe)"  # set variable identifying chroot work in (used in prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ];     debian_chroot=$(cat /etc/debian_chroot) fi  # set fancy prompt (non-color, unless know "want" color) case "$term" in     xterm-color) color_prompt=yes;; esac  # uncomment colored prompt, if terminal has capability; turned # off default not distract user: focus in terminal window # should on output of commands, not on prompt #force_color_prompt=yes  if [ -n "$force_color_prompt" ];     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null;     # have color support; assume it's compliant ecma-48     # (iso/iec-6429). (lack of such support extremely rare, , such     # case tend support setf rather setaf.)     color_prompt=yes     else     color_prompt=     fi fi  if [ "$color_prompt" = yes ];     ps1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     ps1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt  # if xterm set title user@host:dir case "$term" in xterm*|rxvt*)     ps1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$ps1"     ;; *)     ;; esac  # enable color support of ls , add handy aliases if [ -x /usr/bin/dircolors ];     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     alias ls='ls --color=auto'     #alias dir='dir --color=auto'     #alias vdir='vdir --color=auto'      alias grep='grep --color=auto'     alias fgrep='fgrep --color=auto'     alias egrep='egrep --color=auto' fi  # colored gcc warnings , errors #export gcc_colors='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'  # more ls aliases alias ll='ls -alf' alias la='ls -a' alias l='ls -cf'  # add "alert" alias long running commands.  use so: #   sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'  # alias definitions. # may want put additions separate file # ~/.bash_aliases, instead of adding them here directly. # see /usr/share/doc/bash-doc/examples in bash-doc package.  if [ -f ~/.bash_aliases ];     . ~/.bash_aliases fi  # enable programmable completion features (you don't need enable # this, if it's enabled in /etc/bash.bashrc , /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix;   if [ -f /usr/share/bash-completion/bash_completion ];     . /usr/share/bash-completion/bash_completion   elif [ -f /etc/bash_completion ];     . /etc/bash_completion   fi fi  ### added heroku toolbelt export path="/usr/local/heroku/bin:$path"   export virtualenv_python="/usr/bin/python3" source /usr/local/bin/virtualenvwrapper.sh   export nvm_dir="/home/tushant/.nvm" [ -s "$nvm_dir/nvm.sh" ] && . "$nvm_dir/nvm.sh"  # loads nvm \n. ~/.nvm/nvm.sh  ### androiddev path export android_home=/home/tushant/android/sdk  export path=${path}:/home/tushant/android/sdk/tools  export path=${path}:/home/tushant/android/sdk/platform-tools   export path="$home/.rbenv/bin:$path" eval "$(rbenv init -)" export path="$home/.rbenv/plugins/ruby-build/bin:$path" 


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -