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
28
votes
4 answers

pyenv: BUILD FAILED (Ubuntu 15.04 using python-build 20160509)

I have already installed the pyenv on my system, and the command pyenv install --list goes well. But when I download some Python versions using pyenv install 2.7.11, it turns out as follows: Downloading Python-2.7.11.tgz... ->…
Panfeng Li
  • 3,321
  • 3
  • 26
  • 34
27
votes
2 answers

Issues Installing Python 3.x via Pyenv

I have just gotten a new Macbook Air with M1 chip and I am trying to install Python 3.8.3 (or any 3.x version) via pyenv. I was able to install pyenv via Homebrew, but when I try to install a new python version I get an error like the below. I…
greenmeansgo
  • 441
  • 2
  • 6
  • 9
27
votes
4 answers

How can I upgrade Python version and packages in pyenv virtualenv?

I used pyenv, pyenv-virtualenv for managing python virtual environment. I have a project working in Python 3.4 virtual environment. So all installed packages(pandas, numpy etc) are not newest version. What I want to do is to upgrade Python version…
user3595632
  • 5,380
  • 10
  • 55
  • 111
27
votes
3 answers

How to let pyenv to find installed python versions

I experience a following contradictory problem with pyenv: $ pyenv global python2.7.10 pyenv: version `python2.7.10' not installed $ pyenv install 2.7.10 pyenv: /Users/xeli/.pyenv/versions/2.7.10 already exists continue with installation? (y/N)…
Akseli Palén
  • 27,244
  • 10
  • 65
  • 75
26
votes
4 answers

docker-compose command not available for mac

I installed docker with the instructions here, downloading from docker-hub https://docs.docker.com/docker-for-mac/install/ But when I run docker-compose I get this error pyenv: docker-compose: command not found The `docker-compose' command exists…
naamadheya
  • 1,902
  • 5
  • 21
  • 28
24
votes
4 answers

poetry returns 'dyld: Library not loaded ... image not found' following brew install while inside virtual environment

I ran brew install postgresql while inside a poetry environment. Since then, I can't interact with poetry. λ ~/ poetry dyld: Library not loaded: /usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/Python Referenced from:…
24
votes
1 answer

Installing anaconda with pyenv, unable to configure virtual environment

I am using pyenv to manage python installations and virtual environments - and I would like anaconda to be one such installation, and to be able to create virtual environments using anaconda python. Using pyenv install anaconda3-2019.03 successfully…
Max Lyons
  • 243
  • 1
  • 3
  • 5
23
votes
0 answers

Error while installing python on Big Sur 11.1 with Pyenv

When I run pyenv install 3.8.0 This is my command line errors: jazab@Jazabs-MacBook-Pro ~ % pyenv install 3.8.0 python-build: use openssl@1.1 from homebrew python-build: use readline from homebrew Downloading Python-3.8.0.tar.xz... ->…
Jazab C.
  • 255
  • 2
  • 5
23
votes
7 answers

Pyenv won't install python 3 on Mac os 11

Trying to install Python 3.9.0 on Mac OS 11.0.1 with pyenv install 3.9.0. Results: python-build: use readline from homebrew Downloading Python-3.9.0.tar.xz... -> https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz Installing…
jasonm
  • 1,020
  • 2
  • 11
  • 24
23
votes
1 answer

Ubuntu 18.04 Command 'pyenv' not found, did you mean:

So here is my Ubuntu version: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic I'm trying to run the following command: pyenv install 3.6.2 but i get the…
notMyName
  • 690
  • 2
  • 6
  • 17
23
votes
10 answers

Pyenv choose virtualenv directory

I just began to use pyenv to manage my python versions, and began to use the pyenv virtualenv plugin to manage my virtualenvs, and so far, I have loved it. One thing I miss however, is that with virtualenv, you could actually place virtual…
ericmarkmartin
  • 717
  • 1
  • 8
  • 19
21
votes
3 answers

How can I install zlib on Mac OS X Mojave (10.14)?

I recently upgraded from Sierra to Mojave. After that I tried to use pyenv install 3.5.6. This uses homebrew in the background to try to install python, which fails with zipimport.ZipImportError: can't decompress data; zlib not available. The same…
geoidesic
  • 4,649
  • 3
  • 39
  • 59
20
votes
4 answers

How can I activate a virtual env with pyenv?

I followed this guide to install pyenv in order to manage all Python versions I have installed on my Mac. However, it is not clear to me what the pyenv global 3.7.3 command does and how I can activate a venv that uses Python 3.7. If I type: pyenv…
Py-ser
  • 1,860
  • 9
  • 32
  • 58
20
votes
4 answers

How can I install Anaconda aside an existing pyenv installation on OSX?

Sincerest apologies if this is easily found elsewhere, but although I found a number of posts with pyenv and Anaconda explanations, none addressed this issue specifically. However, I am often an idiot. On Mac OSX (Mojave 10.14.6) I installed pyenv…
Dribbler
  • 4,343
  • 10
  • 33
  • 53
19
votes
5 answers

pyenv no longer sets paths correctly when activating virtual environments

I've been using pyenv for almost two years with no problems on my system running RHEL 8.3 (Linux kernel 4.18) with Gnome 3.32.2 in X11 mode. I primarily use the fish shell but also occasionally bash, both worked fine with pyenv until now. However,…
hpy
  • 1,989
  • 7
  • 26
  • 56
1 2
3
57 58