Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyinstaller
#31
Try.
pyenv local 3.8.3
Also look here check also this.

Check that ~/.bashrc is correct.
Add last in file as you see.
tom@tom-VirtualBox:~$ cat ~/.bashrc
.....
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

# Load pyenv automatically
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Check PATH.
tom@tom-VirtualBox:~$ echo $PATH
/home/tom/.pyenv/plugins/pyenv-virtualen/shims:/home/tom/.pyenv/shims:~/.pyenv/bin:/home/tom/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
See that this are there.
/home/tom/.pyenv/shims:~/.pyenv/bin
Reply
#32
Snippsat - Halleluia !!

it's all working now !
and i made the exe i wanted !

thank you so much ! this has been quite a journey - but eventually we made it !!

i feel so good
thank you so much
Reply
#33
okay, there's one problem,

everytime i close the terminal and start it back - i have to type eval "$(pyenv init -)" in order for it to - when i type python - to show 3.8.3
otherwise - it reverts back to python 2.7
Reply
#34
You most make sure that this is 3. Add to ~/.bashrc correct.
The purpose of a .bashrc file is to provide a place where you can set up variables,aliases,
that define what terminal/shell use every time open a new terminal.
Reply
#35
how do i open the .bashrc file ?
Reply
#36
(May-28-2020, 04:25 PM)astral_travel Wrote: how do i open the .bashrc file ?
Point 3 do i explain it,postet this link 3-4 times in this Thread Wink
So nano ~/.bashrc open file nano text editor that come with most Linux distors.

Can use what editor you want,if like gedit better.
gedit ~/.bashrc
If need install sudo apt install gedit.
Then add lines in tutorial.
Reply
#37
okay, i added to the .bashrc file what was needed (some of it was already there), and it worked !

thanks allot man !
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020