pyenv

Anyone know why my .bash_profile is adding "export pyenv" everytime i open terminal?

Anyone know why my .bash_profile is adding "export pyenv" everytime i open terminal? Question: I had an issue where vscode was loading terminal in a blank screen and i got an error message in vscode saying "Unable to resolve your shell environment". So i decided to check my .bash_profile file and was suprised to find …

Total answers: 1

pyenv: poetry itself, running on older python version, what to do?

pyenv: poetry itself, running on older python version, what to do? Question: Update: Which Python should I use to install poetry? System Python: That is an excellent idea. Once, however, poetry self update was trying to update a system package without the necessary permissions. Pyenv: A good solution. Nonetheless, if Python is updated and the …

Total answers: 2

pyenv windows the term 'pyenv' is not recognized as the name of a cmdlet, function

pyenv windows the term 'pyenv' is not recognized as the name of a cmdlet, function Question: Doing the following in a powershell script in vs code & pip install pyenv-win –target "$HOME.pyenv" [System.Environment]::SetEnvironmentVariable(‘PYENV’,$env:USERPROFILE + ".pyenvpyenv-win","User") [System.Environment]::SetEnvironmentVariable(‘PYENV_HOME’,$env:USERPROFILE + ".pyenvpyenv-win","User") [System.Environment]::SetEnvironmentVariable(‘path’, $HOME + ".pyenvpyenv-winbin;" + $HOME + ".pyenvpyenv-winshims;" + $env:Path,"User") & pyenv –version getting the error The …

Total answers: 1

How do I get pyenv to display the executable path for an installed version?

How do I get pyenv to display the executable path for an installed version? Question: Install a python version using: $ pyenv install 3.8.9 Installed Python-3.8.9 to /Users/robino/.pyenv/versions/3.8.9 List the python versions now available: $ pyenv versions * system 3.8.2 3.8.9 A week goes by and I forget where it is installed. Now suppose I …

Total answers: 2

Installed module via pip, still get ModuleNotFoundError

Installed module via pip, still get ModuleNotFoundError Question: I’m trying to use w3af to start doing some routine security testing on a webapp that I’m using. Install instructions recommend cloning a git repo, then running the python code and seeing what dependencies are unmet then installing them. My first run yielded: ModuleNotFoundError: No module named …

Total answers: 2

Install python 3.6.* on Mac M1

Install python 3.6.* on Mac M1 Question: I’m trying to run an old app that requires python < 3.7. I’m currently using python 3.9 and need to use multiple versions of python. I’ve installed pyenv-virtualenv and pyenv and successfully installed python 3.7.13. However, when I try to install 3.6.*, I get this: $ pyenv install …

Total answers: 3

Error installing python 3.7.6 using pyenv on new macbook pro M1 in OS 12.3+

Error installing python 3.7.6 using pyenv on new macbook pro M1 in OS 12.3+ Question: I am struggling to install python version 3.7.6 using pyenv on my new macbook pro M1 running on mac os 12.3.1. My configuration $ clang -v Apple clang version 13.1.6 (clang-1316.0.21.2) Target: arm64-apple-darwin21.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin $ pyenv …

Total answers: 2

How to fix this import matplotlib problem in M1 Mac?

How to fix this import matplotlib problem in M1 Mac? Question: I bought Mac M1, and now setting up my python environment. I installed Rosetta 2, and set my Terminal as Rosetta 2 I installed pyenv with brew installed Sqlite3 with brew installed python 3.9.4 with pyenv (set as global) installed visual studio code with …

Total answers: 3

pyenv install: 3.x BUILD FAILED (Ubuntu 20.04 using python-build 20180424)

pyenv install: 3.x BUILD FAILED (Ubuntu 20.04 using python-build 20180424) Question: Trying to install a new Python – version with pyenv on Ubuntu 20.04 WSL for Windows 10 fails with the following output: username@hd1pcms0347:~$ pyenv install 3.9.4 Downloading Python-3.9.4.tar.xz… -> https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz Installing Python-3.9.4… python-build: use readline from homebrew BUILD FAILED (Ubuntu 20.04 using python-build 20180424) …

Total answers: 2

Conda env vs venv / pyenv / virtualenv / etc

Conda env vs venv / pyenv / virtualenv / etc Question: To add a question to the great question and discussion here on pyenv, venv, virtualenv, and virtualenvwrapper, could someone please explain how conda environments fit into this world? When are the preferred use cases for conda environments vs the other virtual environment options? Asked …

Total answers: 2