Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Isaac Ferreira Filho
    @yzakius

    Hello everyone. I'm install pyenv and pyenv-virtualenv following instructions in github.

    My problem: I can't access other python versions that I installed through pyenv. I installed version 3.6.9, but when I use pyenv-virtualenv or a "pyenv shell 3.6.9" I'm still on the same version as my system.

    StephenHogg
    @StephenHogg
    Hi - I've had a look around but aren't able to work out if there's a way to share packages between pyenv virtualenvs? I'm quite keen to avoid a situation where I have 5-10 different copies of torch (~800mb) installed
    would be very grateful for any guidance
    Angus Hollands
    @agoose77:matrix.org
    [m]
    @StephenHogg: not with pyenv + venv - the libraries themselves are installed in conventional Python virtualenvironments
    You can use something like conda, which uses hard-links to avoid duplicating packages (where the versions agree)
    Adam Janik
    @adam.k.janik:matrix.org
    [m]
    CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib" CPPFLAGS="-I$(brew --prefix zlib)/include" CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl)" pyenv install 3.9.1
    But it does not help. Reinstalled zlib, readline and openssl but still does not work on Macos 11.4
    I got no idea how to debug this
    alex-yobota
    @alex-yobota
    Hi - I need a hand installing python 3.6.9 on arch. I have successfully installed other versions, but less that 3.7 seems to fail. I have a build log, but it is ~10,000 lines. Is there a particular bit of it that would be helpful?
    Jeremy Cantrell
    @jmcantrell:matrix.org
    [m]
    I just noticed that there are no python, pip, etc symlinks in ~/.pyenv/shims to python3, pip3, etc. Shouldn't those exist? Direnv's pyenv integration looks for "python", so it breaks.
    Xavier Sumba
    @cuent
    hello, I am trying to install python 3.7.11 with pyenv in ubuntu 20 but it is failing due to OpenSSL. I am getting this message The Python ssl extension was not compiled. Missing the OpenSSL lib? I tried what it says in the common build problems guide but can't fix it. Any thoughts ?
    Xavier Sumba
    @cuent
    fixed after installing libssl-dev
    haoming-XU
    @haoming-XU
    pyenv will cause sh to become stuck due to the eval "$(pyenv virtualenv-init -)" in the configuration file
    Will produce a relatively large freeze
    haoming-XU
    @haoming-XU
    CentOS dependency yum install -y gcc zlib-devel bzip2-devel readline-devel openssl-devel sqlite-devel curl
    Ubuntu dependency sudo apt install -y gcc zlib1g-dev libbz2-dev libreadline-dev libssl-dev libsqlite3-dev curl
    jprokos
    @jprokos
    Highly confusing instructions for first time installer. Section 2 for macOS users, If you use Homebrew to install pyenv you don't have to add any lines to .profile . Correct? So this means you don't need to modify your PATH in anyway? No environmental variables? Thanks for clarification.
    alexbc42
    @alexbc42:matrix.org
    [m]
    Hi, is it possible to run a script when ever a virtualenv is activated? So i set a local
    virtual env to a directory. When ever i cd into it, the corresponding virtualenv gets activated.
    After that, i like to set an environment variable by a script for example.
    ashwinvis
    @ashwinvis:matrix.org
    [m]
    alexbc42: You need pyenv-virtualenv
    Fredrik Averpil
    @fredrikaverpil

    I have a weird problem. I have a Ubuntu 20.04.3 LTS Live USB and when running it, I cannot install llvm and tk-dev. They are simply not available. I posted an issue here about it: pyenv/pyenv#2076

    Does anyone have any clue as to why I cannot download these two packages?
    In the past, I've downloaded and installed these just fine.

    Sanket Dasgupta
    @SanketDG

    Man, I hve been using pyenv for so long, I never thought it would break.

    My pyenv activate does everything (sets $VIRTUAL_ENV etc) but fails to set the $PATH any ideas?

    Stefan Ulbrich
    @StefanUlbrich
    Hi, I installed pyenv yesterday on ubuntu 21.04 (zsh+ OhMyZsh) and everything went fine. When I restarted the PYENV_VERSION variable is always set for each shell (to anaconda) and the local .python-version is ignored. I want anaconda only for jupyter and more recent python versions for development .. I can put an unset PYTHON_VERSION in the rc file but I really wonder where the variable gets set and why
    Also how comes that path and this variable persists even if I remove all traces of pyenv until I restart (log out+in won't do the job)
    sandipanpanda
    @sandipanpanda
    Hi there, I want to help with pyenv/pyenv#1527 of pyenv. Can anyone direct me to where to discuss with project maintainers about the style and wordings before making PRs.
    Daniel Shapero
    @danshapero
    Having this annoying problem on MacOS Big Sur. I'll fire up a terminal session, do pyenv shell <some python version>, run some code, then go make coffee. When I come back, the machine has gone to sleep, but when I awaken it's as if all the environment variables have been clobbered.
    For example, if I do pyenv shell 3.9.7, then a suspend/resume cycle, then do pyenv version, I get 3.9.7 as the output, but then when I run python3 --version it's clearly picking up my system python (3.8.9).
    Vadym Khodak
    @vadymkhodak:matrix.org
    [m]

    Hi all,
    I have a problem that I can't solve for a long time.
    I have installed pyenv-2.2.0 with pyenv-virtualenv.
    I have installed them using this instruction https://github.com/pyenv/pyenv-installer.

    But it doesn't work properly on my side.
    I have a base python 3.8.8.
    I installed python 3.9.7 using this command pyenv install 3.9.7
    I created virtualenv using this command pyenv virtualenv 3.9.7 test
    I activate virtualenv using this command pyenv activate test
    But python version in my terminal is still 3.8.8

    Is here anyone who can help me?

    Felipe Ramos Kafuri
    @felipekafuri
    Screen Shot 2021-11-25 at 10.05.07.png
    Sup guys, I'm with a little problem over here. So I'm trying to use pyenv on my M1 Mac but when I'm going to download a certain python version it returns this exactly
    Can anyone help me with that? I started on python now, came from node, a friend of mine recommended me pyenv, cause I used to use nvm for node. But I'm struggling with this error
    tamaroth
    @tamaroth
    Hi, is it me or does pyenv virtualenv-delete -f <non-existing-venv> still displays error message and sets return error code to 1? I was under the impression that it should be silent, really. At least that's what the help says.
    tamaroth
    @tamaroth
    To answer my own question, I can use pyenv uninstall -f <non-existing-venv> and it will be working fine. The bug is quite old it seems: pyenv/pyenv-virtualenv#369
    mpmat
    @mpmat

    Hopefully someone can help me out here.

    MacBook Pro (Retina, 15-inch, Mid 2015)
    Processor 2.8 GHz Quad-Core Intel Core i7
    macOS Monterrey - 12.0.1 (21A559)

    I've successfully installed pyenv 2.2.0 (both via download and via brew, same problem either way

    √ ~ % pyenv --version
    pyenv 2.2.2
    √ ~ %

    I can confirm the current version of python:

    √ ~ % pyenv version
    system (set by /Users/xxxx/.pyenv/version)
    √ ~ %

    However, when I try to run pyenv install --list I get the following error:

    √ ~ % pyenv install --list
    Available versions:
    /Users/xxxx/.pyenv/plugins/python-build/bin/python-build: line 1957: /usr/local/bin/ls: Bad CPU type in executable
    /Users/xxxx/.pyenv/plugins/python-build/bin/python-build: line 1957: /usr/local/bin/ls: Bad CPU type in executable
    √ ~ %

    Things I've already tried:

    • Update OS
    • install pyenv via homebrew
    • Uninstall and re-install pyenv (both from download and via brew)
    • Uninstall homebrew and reinstall homebrew
    • brew upgrade pyenv
    • uninstall and re-install XCode CLI
    • about 600 other things that I found on the internet.....

    I'm a bit at my wits end (as had no such problems on my other MacBook)

    Anyone have any ideas?