Skip to main content

Posts

Showing posts from November, 2020

Installing Pyenv with ZSH

  This post is written assuming you are using OhMyZsh. Install Pyenv as per this:  https://realpython.com/intro-to-pyenv When I followed the instructions as they were in the guide above, I got the error: "command not found: pyenv". Zsh is not able to find pyenv even though it has been correctly installed. So we can tweak the steps a bit to adjust them to our Zsh shell. While installing, instead of the command   curl https://pyenv.run | bash , use the command   curl https://pyenv.run | zsh . This will install Pyenv. The guide asks you to add some lines of code in bashrc. We'll modify those lines and add them into our zshrc. Enter this command in terminal to be edit the zshrc:   sudo nano ~/.zshrc . Nano is a text editor in terminal that allows you to read and edit text files within the terminal. The command  sudo nano  will open the contents of zshrc inside the terminal just as any other text editor with GUI would. You can edit it the fil...