Questions tagged [pyenv]

pyenv lets you switch between multiple versions of Python. It's unobtrusive and follows the UNIX tradition of single-purpose tools that do one thing well.

pyenv lets you switch between multiple versions of Python. It's unobtrusive and follows the UNIX tradition of single-purpose tools that do one thing well.

https://github.com/yyuu/pyenv

857 questions
0
votes
0 answers

"pyenv global" command does not change the python version. (M1 mac)

As you can see in the below command line, "pyenv global" command does not change anything. Also, "python -V" command does not match the result of "pyenv versions". % pyenv global 3.10.5 % pyenv versions system 3.10.5 3.5.4 * anaconda3-2019.07…
ktakehi
  • 249
  • 1
  • 3
  • 13
0
votes
2 answers

Installed module via pip, still get ModuleNotFoundError

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…
Weston C
  • 3,642
  • 2
  • 25
  • 31
0
votes
1 answer

How to use a Python interpreter in a virtual environment

In Linux Mint distro I have installed pyenv and pyenv-virtualenv so I can activate and deactivate an environment with a given Python version. I would like to use bpython or ipython interpreters with an environment but I only can install them with…
user1993416
  • 698
  • 1
  • 9
  • 28
0
votes
1 answer

How to fix SSL certification error when downloading python 3.9.0 with pyenv on macOS Monterey?

sorry for any formatting errors. Am new to this. I am currently trying to get into the habit of using pyenv. I am not able to install 3.9.0 via '''pyenv install 3.9.0''' I keep getting BUILD FAILED (OS X 12.4 using python-build 20180424) Results…
33_Dreams
  • 1
  • 1
0
votes
0 answers

Python version management and venv - how to make the env folder available inside a project folder using pyenv?

I have a project that I want to work in a different Python version from my OS. In this example my OS is Ubuntu 22 - Python 3.10.4 and I want to create a project using Python 3.8.4. When we want to work with a new python environment with different…
IgorAlves
  • 5,086
  • 10
  • 52
  • 83
0
votes
0 answers

Python successfully compiled by pyenv on Fedora 36 Linux, but fails tests

I am using pyenv to compile and install Python 3.10.5 for my user on hardware running Fedora 36. Python compiles successfully, but when I run python -m tests I'm getting multiple failures ... == Tests result: FAILURE == …
WangTiles
  • 1
  • 1
0
votes
0 answers

Pyenv not working to install version of python

I am trying to install python 2.7.11 with the following command: pyenv install -v 2.7.11 That is the output: /tmp/python-build.20220622154208.76897 ~ Downloading Python-2.7.11.tar.xz... ->…
0
votes
0 answers

pyenv install the specific zip file (python-3.9.12-embed-amd64.zip) instead of default exe file (python-3.9.12-amd64.exe)

I had some permission issues to install specific python versions by the command pyenv install 3.9.12 on a x64 Windows 10. Alternatively, I'm trying to install python from python package's zip file, but got error message…
nwpie
  • 665
  • 11
  • 24
0
votes
0 answers

Python module PyQt5 installation problem on arm64 Ubuntu 18.04

I have arm64 system and ubuntu 18.04 installed on it. I try to install python pyqt5 on it by pip command. Its shows AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’ error. I am using pyenv. I tried many…
0
votes
1 answer

.pyenv/shims not available as CLI arguments to docker run

I think I am missing something fundamental about how docker handles .pyenv shims. Executables that work without issues when a container is running interactively are suddenly not available when requested as a CLI argument to docker run. For…
Artem Sokolov
  • 13,196
  • 4
  • 43
  • 74
0
votes
0 answers

Handling pyenv command using subprocess

Im working on logic to automate process of pyenv virtualenv creation using subprocess. Trying to run multiple pyenv shell commands at one go as below def subprocess_cmd(command): process = subprocess.Popen(command,stdout=subprocess.PIPE,…
Sai
  • 41
  • 4
0
votes
0 answers

When using pyenv to manage python versions, how do I install dependancies?

I'm on Ubuntu 22.04. On a default install there is no python version. I've installed pyenv in order to use specific python-based programs. Some of the programs I want to install have dependencies that are usually installed using pip. However,…
bob.dobbs
  • 153
  • 1
  • 1
  • 10
0
votes
1 answer

How to make Python version executables global across multiple pyenv-virtualenv virtual environments

A pyenv Python version (e.g. 3.10.4) has the "normal" expected Python executables associated with it (e.g., pip, 2to3, pydoc) $ ls "${PYENV_ROOT}/versions/3.10.4/bin" 2to3 idle idle3.10 pip3 pydoc pydoc3.10 python-config …
Matthew Feickert
  • 786
  • 6
  • 26
0
votes
1 answer

Install pyenv on a Vagrant Ubuntu 20.04 VM

I am trying to install pyenv on my vagrant vm. My Vagrantfile looks like this: Vagrant.configure("2") do |config| config.vm.box = "ubuntu/focal64" config.vm.box_version = "20220517.0.0" config.vm.provision :shell, path:…
nopassport1
  • 1,821
  • 1
  • 25
  • 53
0
votes
1 answer

pyenv: fab: command not found

Few days ago MacOS removed Python2. So I installed it with pyenv but fab is not working. Config in .zshrc: ... export PYENV_ROOT="$HOME/.pyenv" export PATH="$HOME/.pyenv/bin:$PATH" export PIPENV_PYTHON="$PYENV_ROOT/shims/python" eval "$(pyenv init…
aplaninsek
  • 134
  • 2
  • 11