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 not shows all version when used as sudo

I installed 3.5.2 and 3.5.3 version using pyenv. # pyenv versions * system (set by /usr/local/pyenv/version) 3.5.2 3.5.3 But, when I run this command as sudo (not login as root) it not gives me all versions. $ sudo /usr/local/bin/pyenv…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
0
votes
1 answer

Rerun the docker image pyenv configuration loss

I installed pyenv in docker, but when I exit, again docker run -it image will be bash: pyenv: command not found I can only retype the following command: The export PATH = "/ root/pyenv/bin: $PATH" > >. Bashrc Eval "$(pyenv init -)" >>.…
jianyi
  • 151
  • 1
  • 3
  • 11
0
votes
1 answer

My pipenv didn't work correctly

I have a vagant box ubuntu/xenial64-20180105 and there is python2.7.12 python3.5.2 defaultly, when I init(vagrant ssh),I use pyenv to install python3.6.4 and set python3.6.4 to my default env pyenv install 3.6.4 pyenv global 3.6.4 I want use pipenv…
hl79-james
  • 111
  • 1
  • 1
  • 9
0
votes
1 answer

Cannot import name html Python on python virtual environment

Need some help over here. I am trying to run my buildbot framework and I am seeing this error. I am running the buildbot framework in the virtual python environment(pyenv). Can someone help with this or has seen this error when running from a…
Arnold
  • 31
  • 5
0
votes
0 answers

Using pyenv and I can't find oauth2client module installed through pip

I'm getting the error ImportError: No module named oauth2client when I try to run a Python script that uses google-api-python-client I had a lot going on in this computer in terms of Python installations, but as far as I can tell things look…
Bani
  • 1,149
  • 2
  • 10
  • 17
0
votes
1 answer

Unable to create functional app bundle on Sierra using py2app and python 3.6.2

I'm using python 3.6.2 with pyenv and homebrew on Mac OS Sierra and i've been unable to create functional bundle apps with py2app v0.14 and pyinstaller v3.2.1. ActiveTcl version 8.5.18/tkinter are installed. Standard 2.7.10 Mac version of python…
Kalienov
  • 9
  • 4
0
votes
0 answers

pyenv seems to revert to older Python version after terminal restart

I am using macOS Sierra. I have problems about using pyenv. I want to use pyenv. So I added path about pyenv. $ is shell. $ vi ~/.bash_profile [.bash_profile] export PYENV_ROOT=/usr/local/var/pyenv if which pyenv > /dev/null; then eval "$(pyenv…
Frodo
  • 36
  • 1
  • 7
0
votes
2 answers

pyenv failing to install package for python 3.5.3

I have multiple version of python on my machine that's why I've installed pyenv to manage them. According to pyenv I have ola@station:~$ pyenv versions * system (set by /home/ola/.pyenv/version) 3.4.6 3.5.3 3.6.1 I set the global (system…
math
  • 1,868
  • 4
  • 26
  • 60
0
votes
0 answers

pyenv 'system' version inconsistent with 'real' python version

In my ubuntu 16.04 system I have the following pyenv versions $ pyenv versions * system (set by /home/myuser/.pyenv/version) 3.6.0 3.6.0/envs/general general I intend that the version named system should coincide with the real system one, but when…
lurix66
  • 502
  • 1
  • 5
  • 14
0
votes
1 answer

What's "which pyenv > /dev/null" mean?

Everyone write if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi into .bashrc etc after installation of pyenv. I know if I didn't excute eval "$(pyenv init -)", python's version would not change. Why do I need to write if which pyenv >…
hrsma2i
  • 4,045
  • 6
  • 15
  • 24
0
votes
1 answer

linux append path to secure_path for running pyenv with sudo

I have installed pyenv, but when I run sudo pip install xx sudo: pip: command not found I know that append /app/pyenv/shims:/app/pyenv/bin(my PYENV_ROOT='/app/pyenv') to secure_path and use Defaults secure_path += /app/pyenv/shims in…
Cheney
  • 960
  • 8
  • 23
0
votes
1 answer

Why the - pyenv: no such command 'shell' error

This seems pretty basic so why the no such command error: $ pyenv shell pyenv: no such command `shell` https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#pyenv-shell
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
0
votes
1 answer

Virtual environment and python versions for different projects

Let me first outline my desired solution and then elaborate on a specific question how to achieve this state. I'm soon starting two coding projects in python. I've used python before but never on such big projects. My ideal scenario would be to have…
math
  • 1,868
  • 4
  • 26
  • 60
0
votes
1 answer

pyenv modifies my prompt for versions with words but not the purely numbered ones

The following lines were added to my .bashrc : export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" The following lines in the terminal illustrates the…
cardamom
  • 6,873
  • 11
  • 48
  • 102
0
votes
0 answers

/usr/bin/less from zsh 5.0.2

I wonder if this is only my case that when I use less 458 (POSIX regular expressions), ~/.zshenv is read. Because I use pyenv and python is in a directory of pyenv (PATH is set in ~/.zshrc), less does not work. The error message is 'no python is…
kensuke1984
  • 949
  • 1
  • 11
  • 21