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
1 answer

BUILD FAILED when trying to install Pyenv3 on OSX

So I've been trying to install Pyenv using Homebrew, but kept getting a failed build error and this message: Inspect or clean up the working tree at /var/folders/bb/n2w9d9210qzg_y3_c4cm92tr0000gn/T/python-build.20220507224423.63876 I've included…
J.D.S
  • 35
  • 1
  • 5
0
votes
0 answers

I can install Python 3.9.7 with pyenv, but can't install Python 3.7.0

I'm currently running 3.10.4 globally, but I need different versions of Python for different projects. I can run pyenv install 3.9.7 with no problem, but I can't run pyenv install 3.7.0 without it failing. Here's my output when I run pyenv install…
0
votes
0 answers

command python doesn't run script in Terminal

I wanted to have 2 versions of Python, thats why I installed pyenv As a result if I've just run python in command line - it works: ilucy-osx2:/ ilucy$ Python 3.7.0 (default, May 4 2022, 14:43:00) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin Type…
Lu Cy
  • 1
0
votes
1 answer

General question about python interpreters (having multiple interpreters, pyenv, etc)

I'm new to coding and I was wondering if someone could explain what exactly python interpreters/environments do and the how that relates to the python versions and packages that can be used in certain projects. I was trying to code a twitter bot…
sel
  • 3
  • 2
0
votes
1 answer

I think I have a problem with pyenv on my server

I have used pyenv to create some virtualenv for my project, and a few month ago, it seems to make some confusing problem. Everytime when I go into the directory which I had set venv, it looks work, but it won't work currectly root@VM-4-7-debian:~#…
Windmourn
  • 1
  • 1
0
votes
1 answer

Python 2 and pyenv: build with shared libraries on macOS

I'm trying to install Python 2 with pyenv and shared libraries on macOS 12.3.1 with the command: export PYTHON_CONFIGURE_OPTS="--enable-shared" && pyenv install 2.7.18 But I get the error: python-build: use openssl@1.1 from homebrew python-build:…
dablak
  • 1,376
  • 1
  • 11
  • 21
0
votes
1 answer

How to run a previous version of Python using virtualenv?

My native python installation is currently 3.10.2, however there is a program I need to use that is only compatible with 2.7-3.8. Rather than deleting my native installation and installing an outdated version, I'm trying to run Python 3.8 in…
lcleary
  • 65
  • 6
0
votes
1 answer

Python versions and pyenv

I installed python3 using homebrew, but I stumbled upon many posts mentioning that it is better to use pyenv to manage different python versions. However, I have not found a post that answers my question: Should I uninstall python3, install pyenv,…
John Stef
  • 585
  • 1
  • 4
  • 16
0
votes
0 answers

Unable to deactivate pyenv

I am presently in the virtualenv py37: (py37) 00:31:04/Applications $ I have tried deactivate source deactivate [source] deactivate py37 None of these result in my "escaping" from the py37 virtualenv. Trying exit kills the entire bash session. …
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
0
votes
1 answer

Does poetry (or pip) 'install' create/have the option to deploy an executable?

I am running poetry install from within a python local virtualenv ".venv" . The project is supposed to create an executable hercl that becomes available on the user's path. Two questions: What options / configuration of I'm not sure if that's…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
0
votes
1 answer

No such file or directory error on VSCode while running a python script with poetry and pyenv

I'm having a problem when accessing a file path while using python in VSCode with pyenv and poetry on Ubuntu 20.04. I run this: import pandas as pd data = pd.read_csv("../docs/lists.csv") data And I got this error: Exception has occurred:…
0
votes
1 answer

Pyenv and Conda coexisting

I want to use pyenv and conda. Pyenv for managing my python versions and conda mostly for Jupiter Notebook. However, every time I use conda it overrides pyenv paths and sets local python version for it's one. This is the .zshrc file on my MacBook…
0
votes
1 answer

Jupiter notebook doesn't find libraries from the virtual env

I created a Pyenv virtual env. After activating the env, I download libraries like pandas into it. However, when I open a jupyter notebook from the same environment's terminal, pandas is not found there. It gives a module not found. I believe it's…
x89
  • 2,798
  • 5
  • 46
  • 110
0
votes
0 answers

wrong python version shown inside VSCode

I created a virtual env using this method within my VSCode Studio. pyenv install 3.7.4 pyenv virtualenv 3.7.4 apps3 pyenv local apps3 pyenv activate apps3 However, when I check python --versionafter the last command, it still shows me Python…
x89
  • 2,798
  • 5
  • 46
  • 110
0
votes
0 answers

how to activate Pyenv locally

What's the correct way to activate a Pyenv environment? I want to use an env with python version 3.7.4. I tried this following this tutorial: https://akrabat.com/creating-virtual-environments-with-pyenv/ pyenv install 3.7.4 pyenv virtualenv 3.7.4…
x89
  • 2,798
  • 5
  • 46
  • 110