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

No module named _sqlite3 on python 3.9.2 virtual environment created with pyenv and poetry

I created a virtual environment with poetry as usual by running: pyenv install 3.9.2 pyenv local 3.9.2 poetry env use 3.9.2 poetry install poetry shell I can effectively see a .python-version file where I can read "3.9.2" and python -V successfully…
a-s-r-789
  • 61
  • 1
  • 6
0
votes
0 answers

pyenv-win The term 'youtube-dl' is not recognized as the name of a cmdlet, function, script file, or operable program

Try to install the 'youtube-dl' package but dont recognize. I use the latest version of pyenv-win with python 3.9.4 version and last pip version. I think the problem is because the path witch cant find for 'youtube-dl' package but I have already the…
Dasd
  • 7
  • 4
0
votes
0 answers

pyenv and poetry installation on MacOSX

I'm trying to install pyenv and poetry on my Macbook Pro running Big Sur. I followed all the instructions and help I could find online, but I'm stuck when trying to install a global Python version using pyenv install 3.9.0 This just produces the…
Monty
  • 1,161
  • 2
  • 15
  • 26
0
votes
1 answer

Automate creation of a pyenv through sh scripts

I'm running a project that uses pip and a requirements.txt file to install and keep track of some dependencies. I want to write some sh scripts to run, build and test the application. For starters I would like a way to check if the current folder is…
Andre GolFe
  • 300
  • 5
  • 12
0
votes
0 answers

Why doesn't 'pyenv install --list' list all miniconda distributions I see on https://repo.anaconda.com/miniconda/?

pyenv install --list | grep miniconda Why does this not return miniconda packages that include the corresponding python versions (eg py38 in Miniconda3-py38_4.9.2-MacOSX-x86_64.sh) I only get the old versions + miniconda3-latest
Daf
  • 1
0
votes
0 answers

Installing Pythonenv on VSCode

Currently I'm trying to use brew to install pyenv on my VSCode terminal, but anytime I do this command in my terminal: brew install pyenv I get this message: Error: No available formula or cask with the name "pyenv". Can someone please walk me…
0
votes
0 answers

How would I fix this error "0curl: (7) Couldn't connect to server"

When I run command -v pyenv && pyenv update || curl https://pyenv.run | bash I end up getting the error 0curl: (7) Couldn't connect to server How would I go and fix this? (Also I have attached a screenshot of what happens)
0
votes
1 answer

Does pyenv-win manage python aliases?

I'm running out of ideas. While building some node project, something explodes on node-sass build part and, basically, fails on some Python call: gyp verb `which` failed Error: not found: python2 I said, ok, probably the alias python2 is missing on…
OzrenTkalcecKrznaric
  • 5,535
  • 4
  • 34
  • 57
0
votes
1 answer

How to manage Python versions for a virtualenv in my open source project?

I have an open source project called Djengu. To install it, the user must clone the repo and run make to initiate the setup script. The setup script creates a Python virtual environment using virtualenv. The command goes like virtualenv -p python3.8…
John Kealy
  • 1,503
  • 1
  • 13
  • 32
0
votes
1 answer

pyenv initialization in .bash_profile vs. .bashrc (after release 2.0.0)

With the recent release of pyenv 2.0.0, the documentation currently recommends the following configuration for a bash shell: # inside ~/.bash_profile eval "$(pyenv init --path)" # inside ~/.bashrc eval "$(pyenv init -)" If I'm not allowed to edit…
jameslouie
  • 21
  • 1
  • 4
0
votes
1 answer

Tensorflow io import issue - missing module even if showing in pip freeze

I am trying to use tensorflow io to process mp3 audio files. My operating system is Ubuntu 20.04. I created a new dedicated virtual environnement and activated it using pyenv : pyenv virtualenv testtfio; pyenv local testtfio I also upgraded pip as…
0
votes
1 answer

How to use pyenv like conda?

I'm currently using both pyenv and conda. With pyenv I keep creating local python environment in individual folders using poetry. With conda (acutally miniconda) I use different python environments across folders. Since it's very annoying to always…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
0
votes
0 answers

How to switch back and forth between pyenv python and system python in tmux?

My problem is almost identical to this question. However the solutions don't work when I use tmux. Usually I first open a terminal (bash) and then start a tmux session. When I then try to use this solution: in my ~/.bashrc I add # >>> conda…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
0
votes
1 answer

How do you run pyenv commands from an npm script?

I'd like to have an npm script in package.json that is like: "scripts": { "activate": "pyenv activate mypythonenvironment" } If I simply run pyenv activate mypythonenvironment in the bash shell terminal, it totally works. However, if I run my…
shawn-p-m
  • 33
  • 7
0
votes
1 answer

Pyenv seems to be using outdated shims: is it safe to wipe them completely?

Env: Mac OS Mojave 10.14.6 Pyenv Version: 1.2.26 (installed via homebrew) Pyenv Python default (Pyenv global, output of pyenv version): 3.9.2 With the above settings, when I try to run python, I get the following…
danders
  • 11
  • 4