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

pyenv failed to load after switching user

I follow the installation instruction here, and installed pyenv under /home/mrcai/.pyenv. When I log in as mrcai, pyenv works pretty well as expected; but when I switch to root and switch back as mrcai, zsh shows that it cannot find…
0
votes
1 answer

Pyenv installs the system version instead of the chosen local version

I am wondering why the wrong version is selected here. Here is some information: ✦ ❯ which python3 /usr/bin/python3 ~/ds/test-pyenv ✦ ❯ python3 -V Python 3.8.10 ~/ds/test-pyenv ✦ ❯ pyenv versions system * 3.10.0 (set by…
RSale
  • 463
  • 5
  • 14
0
votes
1 answer

pipenv under pyenv fails to upgrade its instance under pyenv

After brew upgrading pipenv in MacOS ==> Installing pipenv ==> Pouring pipenv--2022.1.8.big_sur.bottle.tar.gz /usr/local/Cellar/pipenv/2022.1.8: 1,767 files, 28MB I see that the version of pipenv under pyenv is NOT updated: > which pipenv pipenv…
Andrew Ward
  • 171
  • 2
  • 13
0
votes
1 answer

pyenv can't make virtualenv even with pyenv-virtualenvwrapper installed

So first I installed pyenv with brew install pyenv. After trying to install virtualenvs unsuccessfully I installed virtualenv with brew install pyenv-virtualenv. I noticed that there was no folder named ~/.virtualenvs so I made one and ran the…
ChristianOConnor
  • 820
  • 7
  • 29
0
votes
1 answer

Pyenv: activate local venv

I use poetry to manage my projects dependencies and tests. I usually create a new virtual environment for each project, with a .venv directory inside of the project directory. I would like to use pyenv virtualenv to automatically activate this…
matwasilewski
  • 384
  • 2
  • 11
0
votes
1 answer

Trying to Install 3.8.12 Python and It Keeps Using 2.7

It seems no matter how I try to conquer PyEnv running with 3.8.12 it still wants to run with 2.7 I'm out of ideas on how to get this to accurately reflect the Python environment version of 3.8.12.
Heats
  • 123
  • 1
  • 3
  • 10
0
votes
1 answer

Unable to set default Python to 3.x on MacOS Monterey

I have followed instructions as given on How to use pyenv to run multiple versions of Python on a Mac, and have followed each step. $ brew install pyenv pyenv install 3.9.9 Export path to zshrc via echo 'PATH=$(pyenv root)/shims:$PATH' >>…
user2762934
  • 2,332
  • 10
  • 33
  • 39
0
votes
0 answers

pyenv trying to install files globally instead of locally

I created a new virtual environment via this command python3 -m venv test_v4 I check that in my activate file that this config is correct /Users/user/PycharmProjects/test-job/test_v4 I then check correct pip is in fact…
Srinivas
  • 2,010
  • 7
  • 26
  • 51
0
votes
1 answer

Django cannot find new modules, using pyenv and virtualenv

I’m sure this is pretty straightforward to someone experienced. I’m learning Django through the Wedge of Django ebook. I’m using Python 3.8.7 installed via pyenv like so: pyenv install 3.8.7 Then I’ve set up a virtualenv like so: pyenv virtualenv…
0
votes
1 answer

"command not found: pyenv" when opening terminal

Some time ago I installed and used pyenv for a purpose I don't need anymore. Then, I uninstalled it. However, whenever I open up my terminal the first thing it prints is: /Users/jcortizrh/.zshrc:1: command not found: pyenv So it looks like my…
0
votes
3 answers

virtual environment in python

I want to use python version 3.6 or 3.7 because it supports tensorflow1.15. Am trying to create a virtual environment in my linux pc Method 1 : mkdir project, cd project, python3.7 -m venv myvenv, Error "bash: python3.7: command not found", Method…
Alex
  • 17
  • 5
0
votes
0 answers

can't remove the pyenv virturalenv symbol

I believe I correctly deactivated this pyenv virtualenv, but the symbol just doesn't go away. Am I still in this virtualenv or not? This is so confusing. Pls help. Thanks! (catalog-project) wjz@MacBook-Air ~ % source deactivate pyenv-virtualenv:…
annazhwj
  • 17
  • 5
0
votes
1 answer

Package my python project into exe file that requires nothing to be installed on customer side

I have developed a python application that records the users' actions on the web using the following packages python==3.7.9 selenium==4.0.0 seleniumbase==2.1.9 Tinkerer==1.7.2 tqdm==4.62.3 validators==0.18.2 I have tried to use a lot of different…
ElSheikh
  • 321
  • 6
  • 28
0
votes
1 answer

Pip install does not work, matplotlib seems to be broken, pyenv and fresh new install doesn't work

So I wanted to import matplotlib to my virtual python version of 3.10.0 (and other versions). I install it as usual: pip install matplotlib Everything seems to work, no errors show up with pip. But when I try to run this code snippet in vs code (to…
0
votes
0 answers

Installed python package not able to find module in own directory

I recently got my new Macbook Pro and installed 3.8.6 with pyenv and created a virtualenv for my project. When I try to run the tests for this project i get the following error about a module not found by a dependency (abridged). The the files are…
doman412
  • 191
  • 11