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

Python deployment solution for point to multipoint

We have a Python application that runs on a single server (the master), and that is copied to multiple other servers via rsync (the nodes), in an all Ubuntu environment. Currently we have to login to each server when any Python changes include any…
krypterro
  • 391
  • 1
  • 3
  • 14
0
votes
0 answers

Why VirtualENV as django run well without venv?

I am trying to learn Django since long but I always run the server without any venv, yet it runs well. My Question is: Why people install venv to run their project? What is the benefit of it?
user10624503
0
votes
1 answer

python: mypy with arguments to script

1) I'm running into a problem with my script using arguments parsed with argparse.ArgumentParser so I'd like to be able to check typing of my script but when I add some arguments, I get a unrecognized arguments: --import_dir /tmp/someDir/ running…
Pipo
  • 4,653
  • 38
  • 47
0
votes
1 answer

IPython startup script has permanently changed Jupyter Notebooks behaviour

I followed a guide about setting up a pyenv workflow, it includes an IPython Startup Script that modifies the PYTHONPATH when using Jupyter. Now I don't want to use pyenv, but even after uninstalling everything in this guide. This undesirable…
nuutrino
  • 131
  • 3
  • 13
0
votes
1 answer

How to add python module to Python installations via Pyenv?

I'm using pyenv to deal with different python installations. For that, I'd like to add my local python scripts (module) into the python path library. So, for all the python installations within Pyenv, when it's in use I'd like to "hook" the…
Rodrigo Farias Rezino
  • 2,687
  • 3
  • 33
  • 60
0
votes
1 answer

Python seems to be running 3.6 even though my virtual environment is configured to run 3.7

I switched to Python 3.7.2 using pyenv. This is confirmed below: $ python -V Python 3.7.2 I then created a virtual environment called venv and installed all my dependencies. I can see that these have installed when I run pip list. When I now run my…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
0
votes
1 answer

After Mojave upgrade, experiencing Readline library errors. Python 3.5 is requiring Readline 7, but Brew installs only Readline 8

Following an upgrade to MacOS Mojave I rebuilt my Python development environment using Homebrew and Pyenv. I first updated XCODE and my SDK headers ( https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes#3035624…
Chris Luther
  • 1
  • 1
  • 3
0
votes
1 answer

Spyder documentation

When I am using the Spyder IDE the in-built help (usually called using Ctrl-I) does not work correctly in rich text mode: The plain text version works but when set to use rich text there seems to be a problem with the font. I am using Python3.6.5…
feedMe
  • 3,431
  • 2
  • 36
  • 61
0
votes
0 answers

pyenv installation script: need help understanding what it does

One of the steps to install pyenv requires typing the following into a terminal: echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile While I understand what echo -e and >> ./bash_profile do, I do…
Guilherme Salomé
  • 1,899
  • 4
  • 19
  • 39
0
votes
0 answers

How to exclude calling class in puppet based on the command execution?

In the puppet script I inherited there is a class pyenv for pyenv installation class pyenv( include ::pyenv $ensure_repo = 'present', $repo_location = '/usr/local/pyenv', $repo_revision = 'v0.4.0-20140404', $symlink_pyenv …
Alex
  • 7,007
  • 18
  • 69
  • 114
0
votes
1 answer

Why pyenv states that a version is not installed despite it does exist?

I have the error in the script output Notice: /Stage[main]/Python/Exec[set-python-global]/returns: pyenv: version `2.7.9' not installed Error: /usr/local/pyenv/bin/pyenv global 2.7.9 returned 1 instead of one of [0] However, the command pyenv…
Alex
  • 7,007
  • 18
  • 69
  • 114
0
votes
1 answer

pipenv insists on installing Python 3.6

I set up my Python dev environment on macOS using the following commands: brew install pyenv pyenv install 3.7.0 pyenv install 2.7.15 pyenv global 3.7.0 I also added the following to my .bash_profile: export PATH="/Users/me/.local/bin:$PATH" eval…
serverpunk
  • 10,665
  • 15
  • 61
  • 95
0
votes
2 answers

Why is python console not picking up pyenv global version?

ishandutta2007@MacBook-Pro:~$ python --version Python 2.7.15 ishandutta2007@MacBook-Pro:~$ pyenv versions system 2.7 * 3.7.0 (set by /Users/ishandutta2007/.pyenv/version) ishandutta2007@MacBook-Pro:~$ pyenv global 3.7.0 …
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
0
votes
1 answer

Import cElementTree failed with pyenv and python 2.7.12

I have tried to import cElementTree, but failed. Python 2.7.12 (default, Jul 19 2018, 15:12:44) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.cElementTree Traceback (most recent…
hiropon
  • 1,675
  • 2
  • 18
  • 41
0
votes
1 answer

Pycharm importing shutil from *.pyi instead of *.py

Setup: OSX Sierra 10.12.6 Pycharm Community (2018.1.4) pyenvs + pyenv-virtualenv: 2.7.15/envs/DAEnv (created from /Users/milena/.pyenv/versions/2.7.15) 2.7.15/envs/python2 (created from /Users/milena/.pyenv/versions/2.7.15) 3.7.0/envs/python3…
Milena
  • 85
  • 8