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 can't update a local ref?

Pyenv 2.3.3 won't install Python 3.5-dev $ pyenv install 3.5-dev Cloning https://github.com/python/cpython... BUILD FAILED (Ubuntu 22.04 using python-build 2.3.3) Results logged to /tmp/python-build.20220919062707.7231.log Last 10 log…
user1632812
  • 431
  • 3
  • 16
0
votes
1 answer

Cannot set default python version to 3.10.6 using Pyenv

I'm struggling to update my default python to 3.10.6 on Mac. I seem to be able to set the 'global' and 'local' to the new one (as in code), but this doesn't impact the default... Help would be much appreciated, please, as I'm a…
0
votes
0 answers

Having trouble exiting pyenv-virtualenv on macOS

I'm using pyenv-virtualenv, but when I run deactivate or source deactivate, I remain in the virtual environment. (env1) sashamarinskiy@Sashas-MacBook-Air ~ % deactivate pyenv-virtualenv: deactivate must be sourced. Run 'source deactivate' instead of…
0
votes
1 answer

use different python version (3.8) and virtual environment in VSC workspace (sub)folder only

I would like to use a different version of Python (3.8.0) and a dedicated virtual environment in a subfolder of a VSC project/work space. Is this possible? Any pointers would be very much appreciated. Thus far U tried to follow this using pyenv. I…
cs0815
  • 16,751
  • 45
  • 136
  • 299
0
votes
0 answers

pip `ResolutionError` when installing requirements from file to duplicate a virtualenv

I'm trying to create a duplicate of a python virtualenv on my local machine. I ran pip freeze > requirements.txt within my existing virtualenv, then deactivated it before creating and activating a brand new virtualenv with the exact same python…
Ben Jeffrey
  • 714
  • 9
  • 18
0
votes
0 answers

Why do I have two different python envs linked?

I'm using pyenv with python version 3.9.1 I have two projects. I created virtualenv for each of them with "python -m venv env". When I install tox in one env, I can use it in the other. When I uninstall tox in one env, I lose it in the other. This…
0
votes
1 answer

pyenv-win ignores local version

I am having some trouble to use the actual Python version specified by pyenv local. Z:\>pyenv global 3.10.6 Z:\>pyenv local 3.9.12 Z:\>pyenv which python C:\xxx\yyy\.pyenv\pyenv-win\versions\3.9.12\python.exe Z:\>python Python 3.10.6…
Andi
  • 3,196
  • 2
  • 24
  • 44
0
votes
1 answer

pyenv not recognizing environment names

Summary: To activate a pyenv environment, pyenv is requiring me to include the path to the environment instead of just the environment name. I was previously able to run pyenv activate env_name, whereas now I must run pyenv activate…
0
votes
2 answers

Jupyter Save Hook not working after reinstalling python+pyenv

I use a jupyter save hook to convert my notebooks into different formats which is defined in /Users/corrie/.jupyter/jupyter_notebook_config.py. This was all working fine until I recently reinstalled my whole python environment (some environment…
Corrie
  • 11
  • 2
0
votes
0 answers

cx Oracle in PyScript

everyone! I start now some tests in PyScript with my Oracle DB, but the cx oracle not work cx test
Pedro H.
  • 21
  • 3
0
votes
1 answer

ModuleNotFoundError with pyenv and python 3.10.6 (not 3.9.13)

I've been using pyenv and my own module for years. Giving 3.10.6 a try and things break. The following works (new install today - runbook is my own code): pyenv install 3.9.13 pyenv shell 3.9.13 pip install -e ~/code/runbook runbook -h When I do…
Brett Stottlemyer
  • 2,734
  • 4
  • 26
  • 38
0
votes
1 answer

Unable to install Python versions on macOS Monterey 12.5 using Pyenv

Disclaimer: I've read many, many, many threads about this but no solution worked for me, or at least wasn't clear enough in what I would do to my OS. Recently I migrated from an old MacBookPro with Catalina to the M1 Pro with Monterey. My previous…
huncletheo
  • 63
  • 6
0
votes
2 answers

Once a Python upgraded to a new version how do you change the path where to Pip install installs?

I've installed a newer version of Python under wsl2 using: pyenv install 3.9.6 pyenv global 3.9.6 Before I was using 3.8 When I pip install it still looks in the previous pip path related to Python 3.8.5. for already installed…
Ludogiraud
  • 25
  • 7
0
votes
2 answers

Shell often exits after sourcing .bashrc file. Caused by infinite loop in Nvm

Note I edited the original post to get rid of red herrings and update for the newest .bashrc. Post I have a local Mac (using Zsh) and ssh into a EC2-based linux devbox (using Bash). When I source ~/.bashrc on my linux computer, my shell often exits.…
0
votes
1 answer

Why I can see two enabled python versions in my pyenv versions command result?

Hi I see two enabled versions in my pyenv versions result. Why is that, and what is this feature, how does it work? Thanks.
Dachuan Huang
  • 115
  • 1
  • 8