Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Yamashita, Yuu
    I pushed yyuu/pyenv-virtualenv@116e133 for it. With this, you can activate virtualenv by the short name if the name is the virtualenv of currently activated version.
    Above snippet should be able to activate miniconda3-3.18.3/envs/test_venv by pyenv activate test_env in that case
    Johann Visagie
    Yay, thanks! (Sorry, I haven’t logged into Gitter in a while!)
    Hi guys!
    I am having troubles using anaconda/miniconda over pyenv-virtualenv
    :sos: :)
    Eric Mark Martin
    Is there a way to use pyenv-virtualenv to create a virtual environment folder in your project directory. Often times this is helpful so your project is totally portable.
    Jason Meridth
    Eric: I wouldn't imagine so because even if the environment is in the project you want that folder in your .gitignore pip install -r requirements.txt is what should be done.
    That's normal Python project setup/usage in my experience.
    @ericmarkmartin ^^
    Eric Mark Martin
    That's what I usually do, but recently I've been asked to include the entire virtualenv. Just making sure that's weird
    Eric Mark Martin

    I just posted this in the regular pyenv room, because it seems more active, but it also seems more relevant here, so I'll paste my message below:

    I seem to be having a problem with anaconda builds such that using pyenv virtualenv to create conda virtual environments isn't linking all the necessary binaries from the original anaconda build to the virtual environment. For instance, I have to manually symlink jupyter and anaconda. Is this a known bug, or should I file an issue on Github? I'm happy to see if I fix it and PR if others can re-create this.

    Hello! The readme mentions: If eval "$(pyenv virtualenv-init -)" is enabled, pyenv-virtualenv will automatically activate virtualenvs depending on the .python-version file that lists a valid virtual environment. How do I set this? My .python-version-file only contains the project python version 3.5.2
    Ok I got it! I can use the created virtualenv pyenv virtualyenv 3.5.2 newname as a pyenv-Version! So I just call pyenv local newname. Sorry to bother you
    Federico Marcos
    I'm having an issure where activating a virtualenv it does not change the python interpreter. it does not go back to the default global python and even if I activate another virtualenv it does not change the python version being used.
    even if I activate the sanic virtualenv which has python 3.5.2 it still keeps using the global 3.6 python
    I'm using Fish shell, this does not happen in zsh
    Jaeyoung Lee
    I met this error: pyenv: no such command 'virtualenv-init'
    when first install by pyenv-installer
    anybody could help me?
    Jaeyoung Lee
    it's solved.

    Hey there ! I have a little issue with virtualenvwrapper I uninstalled it last night to use the python3 -m venv syntaxe and get ready for 3.6 where virtualenvwrapper is deprecated. Anyway did that and now every time i open a terminal i am prompted with

    bash: /usr/bin/virtualenvwrapper.sh: No such file or directory

    Any idea what is causing this ?

    I am using Fedora 26 64bit

    Ok so my bad. Bashrc was to clean up.
    Hi Guys - is this issue familiar. ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)
    I am using pyenv 1.1.5 and Python 3.6.3 with pyenv-virtualenv
    Jigar Chavada
    Hello. I am trying to create a virtualenv by I am getting the following error message
    List of python modules installed https://pastecode.xyz/view/49835dc1
    Can anybody help to resolve this error
    Anyone here
    I source my env/bin/activate but when i launch python i get python2.7. Could it be a conflict with old makevirtualenv i used??
    Isn't that the line that calls Python3 ?
    hi all.. I installed 3.6.4, created virtualenv and I'm trying to start uwsgi, but I'm getting the error
    PEP 405 virtualenv detected: /var/www/b2berp/venv/
    Set PythonHome to /var/www/b2berp/venv/
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    Fatal Python error: Py_Initialize: Unable to get the locale encoding
    ModuleNotFoundError: No module named 'encodings'
    any ideas what could be wrong? looking around people suggest it's wrong uwsgi configuration, but I have the same config on other machine without pyenv and it works
    so I suspect it's somehow loading invalid python?
    Chris Coleman
    Hello @yyuu and all, I'm getting some travis test succeed with linux and regular python 3.6 using the standard system python and shebang with python2 ( #!/usr/bin/env python2 ) , the same tests fail with pyenv and pyenv-virtualenv, maybe because I'm not using them correctly, maybe not switching into virtualenv correctly, help? Please take a look. https://travis-ci.org/EspaceNetworks/offlineimap/jobs/350511908
    can someone help me with this
    Eric Mark Martin
    Does anyone know how one might go about using pyenv-virtualenv to create a conda environment from an environment.yml file?
    Amos Bird
    Amos Bird
    Does it have virtualenv rename feature?
    I'm not sure if I'm missing something or this is a bug, on osx so did a framework build which works fine using pyenv shell 3.7.0 however I can't get it work work with virtualenv at all keep getting this is not a framework build error
    pyenv virtualenvs
      2.7.13/envs/ipython2 (created from /Users/shane/.pyenv/versions/2.7.13)
      2.7.13/envs/tools2 (created from /Users/shane/.pyenv/versions/2.7.13)
      3.6.3/envs/jupyter3 (created from /Users/shane/.pyenv/versions/3.6.3)
      3.6.3/envs/tools3 (created from /Users/shane/.pyenv/versions/3.6.3)
      3.7.0/envs/fbtest (created from /Users/shane/.pyenv/versions/3.7.0/Python.framework/Versions/3.7)
    * fbtest (created from /Users/shane/.pyenv/versions/3.7.0/Python.framework/Versions/3.7)
      ipython2 (created from /Users/shane/.pyenv/versions/2.7.13)
      jupyter3 (created from /Users/shane/.pyenv/versions/3.6.3)
      tools2 (created from /Users/shane/.pyenv/versions/2.7.13)
    pyevn activate fbtest
    pip install matplotlib
    python -c 'from matplotlib import pyplot; pyplot.plot([], [])'
    Traceback (most recent call last):
    ImportError: Python is not installed as a framework.
    Jimmy Wan
    Any idea when pyenv-virtualenv 1.1.5 will be released to homebrew? Just got a new workstation and trying to use brew, but conda isn't playing nice.
    jonathan willis
    can I use this plugin to pip install software so it is globally accessible (through a shim) but installed in it's own virtual env sandbox. I would like to install some command line apps that have mutually exclusive dependency versions. Right now it seems the shim just specifies where to access the command from.
    Regényi Balázs
    When I create a new virtualenv, then the pip version is very old (9.x).
    How can I enforce to install the last pip and setuptools when I create a new virtualenv?
    balage@dev12:~$ pyenv virtualenv 3.5.6 test
    Requirement already satisfied: setuptools in /home/balage/.pyenv/versions/3.5.6/envs/test/lib/python3.5/site-packages
    Requirement already satisfied: pip in /home/balage/.pyenv/versions/3.5.6/envs/test/lib/python3.5/site-packages
    balage@dev12:~$ pyenv shell test
    (test) balage@dev12:~$ pip list
    Package    Version
    ---------- -------
    pip        9.0.1
    setuptools 28.8.0
    You are using pip version 9.0.1, however version 19.0.3 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    (test) balage@dev12:~$
    pyenv virtualenvs command gives me nothing
    pyenv versions returns some values
    So I thing pyenv-virtualenv plugin is'nt installed properly
    How do I test it?
    Regényi Balázs
    @allen505 what is output of "pyenv versions"?