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 local functionality not working in jupyterlab terminal

I am on Mac OS X and I have two Python versions (3.6.11 and 3.8.5) installed via pyenv. The global python version is 3.8.5 and I have a project folder myproject configured with pyenv local to use version 3.6.11 instead. To enable automatic switching…
Martin Wiebusch
  • 1,681
  • 2
  • 11
  • 15
0
votes
0 answers

Build Docker image with a specific Python version - I get newer version anyway

I'm following instruction from https://realpython.com/intro-to-pyenv/ I have a Dockerfile: FROM ubuntu:20.04 # needed by many packages (like Ansible) RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ …
mnj
  • 2,539
  • 3
  • 29
  • 58
0
votes
0 answers

keep python virtual environment permanently

In my dev environment (ubuntu 16.04) I activated the venv for my first python project. Now every time I cd to its folder I can see, that it is activated. foo@bar:~$ cd projects/my-project/ (my-project) foo@bar:~/projects/my-project$ cd…
user3568719
  • 1,036
  • 15
  • 33
0
votes
1 answer

Few Python commands aborted without any error on MacOS Catalina

Few commands on my Laptop like flask fab, fabmanager, superset are aborted without any error message and I can't figure out what is wrong here $ which python /Users/azharkhan/Work/incubator-superset/venv2/bin/python $ python --version Python…
azhar22k
  • 4,765
  • 4
  • 21
  • 24
0
votes
1 answer

Can't downgrade Python 3.4's sqlite3.sqlite_version on Ubuntu 20.04 via pyenv to run tox test

Setup: Ubuntu 20.04 Pyenv libsqlite3-dev v3.31.1 I'm trying to downgrade sqlite3.sqlite_version for Python 3.4 to run some tox tests, and am having no luck. I'm on Ubuntu 20.04. I was able to successfully upgrade it to 3.32.1…
user2540711yo
  • 526
  • 6
  • 11
0
votes
1 answer

Can't install python by pyenv on RHEL

Installed pyenv on RHEL7.6. Installed necessary libraries as wiki sudo yum install @development zlib-devel bzip2 bzip2-devel readline-devel sqlite \ sqlite-devel openssl-devel xz xz-devel libffi-devel findutils Check the install available list $…
rawmain
  • 309
  • 5
  • 15
0
votes
1 answer

Ignoring ensurepip failure: pip requires SSL/TLS - Python 3.4.X with pyenv on OS X

I am trying to install python version 3.4.10 via pyenv but I get the error Ignoring ensurepip failure: pip 9.0.1 requires SSL/TLS. For python versions after 3.4.10 (e.g.: 3.5.9), it did succeed however. I tried following the instructions both on…
N.Berghmans
  • 335
  • 3
  • 8
0
votes
1 answer

Pyenv: activate.sh command not found

When opening a vscode terminal when the python extension is loaded, it tries to execute this: source /Users/victor/.pyenv/shims/activate.sh Which triggers this error: pyenv: activate.sh command not found The `activate.sh` command exists in these…
ted
  • 13,596
  • 9
  • 65
  • 107
0
votes
1 answer

Ubuntu won't recognize updated version of Python with pyenv?

I am trying to update from Python 2.7.17 to 3.8.1 so that I can run pip install pandas. I have installed pyenv, followed the instructions to add pyenv to my path, and installed 3.8.1. But every time I run python, it will not use version…
amb
  • 27
  • 6
0
votes
1 answer

in `pyenv/pyenv-virtualenv` can I create a virtualenv which refers to `system`, i.e. without a `pyenv install` before?

Hello I am using pyenv and its plugin pyenv-virtualenv. Normally I would install a pyenv first (e.g. pyenv install 3.7.6) and then a virtualenv (e.g. pyenv virtualenv 3.7.6 myenv) and then proceed with pip install. This time, as the system already…
lurix66
  • 502
  • 1
  • 5
  • 14
0
votes
0 answers

Why won't virtualenvwrapper start?

I have installed virtualenvwrapper and performed the ritual of placing export PATH="/home/jeff/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" export WORKON_HOME=~/Envs in .bashrc If I logout and log back in workon gives…
Psionman
  • 3,084
  • 1
  • 32
  • 65
0
votes
1 answer

fatal error: 'arrayobject.h' file not found when using pyenv

I am trying to use the following package: https://github.com/vBaiCai/python-pesq and I am also using Pipenv and pyenv. I have installed 3.6-dev with pyenv and am using that with pipenv --python ~/.pyenv/versions/3.6-dev/bin/python3. When I do…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
0
votes
1 answer

Dockerfile Build Fails - Pipenv and Pyenv Multiple Versions of Python Found

Question: How can I fix the Dockerfile to properly freeze requirements.txt and successfully build? I am working through deploying a Dockerfile of a Python script utilizing Pyenv and Pipenv for local development. On the build step where the Piplock…
Liquidgenius
  • 639
  • 5
  • 17
  • 32
0
votes
1 answer

How do you disable Pyenv?

I do not want to uninstall pyenv because I might want to use it later. I've seen a lot of solutions over here Deactivate pyenv in current shell but none of them work. I commented out the commands on my .bashrc files like so: #export…
logic1976
  • 519
  • 1
  • 6
  • 19
0
votes
1 answer

Why does Python seem to be using two interpreters at once?

I used to use pyenv as my version manager but it had too much trouble installing packages so I'm moving over to virtualenv. So when I activate my virtual environment and write: which python I get: /Users/kylefoley/codes/venv/bin/python But when I…
logic1976
  • 519
  • 1
  • 6
  • 19