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

ASCII codec error when setting up an virtualenv with pyenv-virtualenv

I need to use different version of python than which is installed on the system. To do this I used penv to install the version I wanted - 2.7.12 and then the proper version shows up when I do: pyenv which…
user2998764
  • 445
  • 1
  • 6
  • 22
0
votes
0 answers

I get a "Build Failed" error when I try to use pyenv install "python version"

I get the below issue when I run pyenv install "python version". Not sure how to fix or what the problem is. I've looked through the majority of resources, but nothing I've seen specifies what the issue is. Does this have to do with Xcode? I've…
0
votes
0 answers

Why the python enviroment isn't provided by pyenv。

I use pyenv manage my python versions. But I found when i install package by pip, The errors below: File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File…
leo
  • 33
  • 4
0
votes
1 answer

pyenv prints module in terminal when executing said module

I've moved over to using pyenv when running python. The problem though is when I execute a module and that module imports other module pyenv will often print a huge chunk of what to me is gibberish. For example, alias py37="pyenv local 3.7.3 &&…
logic1976
  • 519
  • 1
  • 6
  • 19
0
votes
1 answer

How to use Python 3.5.1 with pyenv (on Mac)?

I installed Python 3.5.1 and then ran pyenv install 3.5.1, thinking this would point to Python 3.5.1. But that didn't work. MBP-Oct-2016:~ user1$ python -V Python 2.7.10 MBP-Oct-2016:~ user1$ pyenv versions * system (set by…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
0
votes
0 answers

How to change Spyder's interpreter to pyenv's path

After installing Python version 3.8.0b4 (on my macbook, runnins macOS: Mojave), my IDE (Spyder version 4.0.0 beta4) defaults to Python version 2.7 (the root version). How do I modify the Spyder PYTHONPATH to point to the newer Python version,…
Gustav Rasmussen
  • 3,720
  • 4
  • 23
  • 53
0
votes
2 answers

pyenv install 3.8.0b4 on macOS Mojave

I am trying to install the latest beta version of the new Python 3.8. My laptop is running macOS Mojave. I am following the tutorial on RealPython: https://realpython.com/intro-to-pyenv/ and have skimmed through similar questions, e.g. pyenv 3.6.5…
Gustav Rasmussen
  • 3,720
  • 4
  • 23
  • 53
0
votes
1 answer

Tox conditions to create a lib64 symlink

I have two virtual environments, both have the same version of tox (3.13.2) and the same python (2.7.5). Using the same tox.ini file, I get two different behaviours: in one case, there is a lib64 symlink, not in the other. What causes tox to create…
Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156
0
votes
2 answers

dir-locals.el settings not applied to some variables

I want to use my .dir-locals.el to set virtualenv name on a project. The variable is set, but not regarded when used as an argument in other concatenated variables. I've tried added a .dir-locals.el file to a python project. In it I set the…
mkjmkjmkj
  • 21
  • 4
0
votes
2 answers

Python Pyenv Pip appears to be isolated in Pyenv but installs into System (Awsclieb as example)

I am trying to introduce separate versions of Python on MBP (10.13.15) and I am officially lost in the sauce. I have succuessfully created both a pyenv for Python 3.7.4 and a virtualenv in the same. However, I am running into issues where…
0
votes
0 answers

Make `pypy3` command available without making `python` point to it

With pyenv I can get multiple pythons installed. Currently when I do pypy3, I get $ pypy3 pyenv: pypy3: command not found The `pypy3' command exists in these Python versions: pypy3.5-5.8.0 pypy3.6-7.1.1 and if I do pyenv shell…
Hatshepsut
  • 5,962
  • 8
  • 44
  • 80
0
votes
1 answer

how should i be using python 3.6 and python 3.7 side by side on msys2 and cmder?

I'm using msys2 for my dev environment on Windows 10. It's great, and this is the first roadblock I've come up against. Specifically I'm trying to install some packages that won't allow me to via pip because my platform is incorrect. They require…
user1026169
  • 5,345
  • 5
  • 21
  • 35
0
votes
2 answers

Pyenv: `python3.6 -m venv venv` creates an environment with Python 3.7.4

I am having some trouble with creating virtual environments using pyenv. This works fine: $ pyenv local 3.6.0 $ python >>> Python 3.6.0 (default, Jul 21 2019, 14:03:29) >>> [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin >>>…
D Pinto
  • 871
  • 9
  • 27
0
votes
1 answer

AttributeError: module 're' has no attribute 'IGNORECASE' ...only in pyenv build

On my Mac OSX pyenv python 3.7.3, a simple base converter fails with File "/Users/geo/.pyenv/versions/3.7.3/lib/python3.7/string.py", line 88, in Template flags = _re.IGNORECASE the same code works with brew 3.7.3 reinstalled pyenv 3.7.3, and…
0
votes
0 answers

How to customize bash prompt when (de)activating Pyenv?

When (de)activating Pyenv (on Arch Linux) my customized Bash prompt is modified by adding/removing the name of virtual environment, example: Before activating: lucas@localhost ~/mycurdir $ After activating: (myvirtualenv) lucas@localhost…