Skip to main content

All Questions

Tagged with
0 votes
0 answers
24 views

PyEnv in WSL2 requires a lot of using apk versions of packages and rebuilding

I'm currently doing most of my development work in WSL2 and since I use python a lot for different projects I started using pyenv to keep my python versions and virtualenvironments clean and seperated....
luke1110's user avatar
0 votes
0 answers
240 views

Unable to Install Python 3.6.8 Using PyEnv in an Ubuntu Docker Container: Segmentation Fault and Missing libffi

I'm attempting to set up a new Docker container using the Ubuntu latest image and install multiple Python versions using PyEnv. While I successfully installed Python 3.8.10, I'm encountering issues ...
Ilgar's user avatar
  • 9
2 votes
1 answer
10k views

Ubuntu 22.04.2 command "pyenv" not found

I'm brand new at this and am trying to download Python. I can get to: export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" ...
Brittany Hyde's user avatar
14 votes
4 answers
7k views

Installing pyenv-win on top of working wsl2 Ubuntu instance breaks Ubuntu pyenv

I've been using pyenv for the past year in my ubuntu 22.04 under wsl2. It works fine, and I have no issues with installing python versions and setting them up for a project. I now have a windows app ...
Mark Ryan's user avatar
  • 535
2 votes
1 answer
445 views

Tried to install python 3.7.0 got build failed

Iam trying to install python 3.7.0 in ubuntu using "pyenv intall 3.7.0" Command. but got build failed. root@Hp:/home/shiva# pyenv install 3.7.0 Downloading Python-3.7.0.tar.xz... -> https:...
Shiva dharavath's user avatar
5 votes
1 answer
23k views

Problems with installing Python 3.11.1 using pyenv

I tried to install Python 3.11.1 using Pyenv and got this: ➜ ~ pyenv install 3.11.1 Downloading Python-3.11.1.tar.xz... -> https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz Installing ...
euxxx's user avatar
  • 111
1 vote
1 answer
932 views

Pyenv unable to install older versions of Python 3 due to `configure: error: C compiler cannot create executables`

I've been trying to use pyenv to install older versions of python3. I've tried 3.0.1, 3.1.0, 3.1.1, and 3.1.2. I kept getting the error ImportError: No module named _ssl ERROR: The Python ssl ...
Hofbr's user avatar
  • 1,010
33 votes
5 answers
28k views

Unable to locate package python-openssl

I'm trying to install Pyenv, and I'm running on Ubuntu 22.04 LTS. but whenever I run this command sudo apt install -y make build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-...
Jaygee's user avatar
  • 443
0 votes
1 answer
717 views

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 = "...
nopassport1's user avatar
  • 1,944
2 votes
1 answer
2k views

Moving .pyenv folder to another partition, symlinking

This question is related to programming environment setup for python. I have run out of space on my home folder on Ubuntu. Python shims are stored in their default location ~/.pyenv and taking up a ...
R.S.'s user avatar
  • 2,160
4 votes
1 answer
3k views

'_ctypes' module missing when python is installed via pyenv

I am trying to set up an environment using pyenv and homebrew on Ubuntu 20.04. There are no problems with my system install of python. However, when I install a specific version of python using pyenv ...
Jan Parzydło's user avatar
4 votes
3 answers
985 views

Why does `python` point to my system's default python interpreter, instead of my `pyenv` python interpreter?

python points to my system's default python interpreter, instead of my pyenv python interpreter. I created the python virtual environment and activated it as follows: pyenv virtualenv 3.8.12 test3 ...
Franck Dernoncourt's user avatar
2 votes
1 answer
920 views

Pyenv: no such command `version-name'

Whenever I launch a new terminal, I receive this error: ~/.pyenv/bin/pyenv: line 36: ./bin/readlink: No such file or directory pyenv: no such command `version-name' I opened the file in the text ...
Piratkriegen's user avatar
20 votes
4 answers
33k views

Using Poetry with PyEnv and having Python version issues

I'm working on WSL2 Ubuntu. I've been taking a course in backend API development using Fastapi. My Ubuntu default python is 3.8 I believe. I'm trying to use python 3.10.0 for my development. I've done ...
Mark Ryan's user avatar
  • 535
1 vote
1 answer
2k views

Pyenv doesn't change python version when 'pyenv global 3.7.2'

I'm using Ubuntu 16.4 I installed dependencies for pyvenv and pyenv , by su sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl ...
Shale's user avatar
  • 417

15 30 50 per page