Code Monkey home page Code Monkey logo

Comments (9)

sparcbr avatar sparcbr commented on July 26, 2024 1

$ pyenv deactivate aminhaquadra

Failed to deactivate virtualenv.

Perhaps pyenv-virtualenv has not been loaded into your shell properly.
Please restart current shell and try again.

from pyenv-virtualenv.

smkbarbosa avatar smkbarbosa commented on July 26, 2024 1

$ pyenv deactivate aminhaquadra

Failed to deactivate virtualenv.

Perhaps pyenv-virtualenv has not been loaded into your shell properly. Please restart current shell and try again.

I solved this add in .bashrc:

eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

from pyenv-virtualenv.

yyuu avatar yyuu commented on July 26, 2024

The pyenv activate is a quite new feature in pyenv-virtualenv. The latest release of pyenv-virtualenv for Homebrew is 20140110.1 and it doesn't contain it.

Now I am working for next release iteration. Please wait for a while, or try reinstalling pyenv with brew install --HEAD pyenv-virtualenv.

from pyenv-virtualenv.

carolyn-idi avatar carolyn-idi commented on July 26, 2024

OK - I'll give that a try.
Thanks!

from pyenv-virtualenv.

NathanDotTo avatar NathanDotTo commented on July 26, 2024

Still something weird here. See below.

$brew install pyenv
==> Downloading https://homebrew.bintray.com/bottles/pyenv-1.2.8.mojave.bottle.tar.gz
Already downloaded: /Users/nsowatsk/Library/Caches/Homebrew/downloads/dff5316003f00a4b90aac3850d5a1324631d49a6d96719e2e7d2d4cf439c3561--pyenv-1.2.8.mojave.bottle.tar.gz
==> Pouring pyenv-1.2.8.mojave.bottle.tar.gz
๐Ÿบ /usr/local/Cellar/pyenv/1.2.8: 612 files, 2.4MB
$ pyenv --version
pyenv 1.2.8
$ pyenv commands
--version
commands
completions
exec
global
help
hooks
init
install
local
prefix
realpath.dylib
rehash
root
shell
shims
uninstall
version
version-file
version-file-read
version-file-write
version-name
version-origin
versions
whence
which

$ brew remove pyenv

$ brew install --HEAD pyenv-virtualenv
==> Installing dependencies for pyenv-virtualenv: pyenv
==> Installing pyenv-virtualenv dependency: pyenv
==> Downloading https://homebrew.bintray.com/bottles/pyenv-1.2.8.mojave.bottle.tar.gz
Already downloaded: /Users/xxx/Library/Caches/Homebrew/downloads/dff5316003f00a4b90aac3850d5a1324631d49a6d96719e2e7d2d4cf439c3561--pyenv-1.2.8.mojave.bottle.tar.gz
==> Pouring pyenv-1.2.8.mojave.bottle.tar.gz
๐Ÿบ /usr/local/Cellar/pyenv/1.2.8: 612 files, 2.4MB
==> Installing pyenv-virtualenv --HEAD
==> Cloning https://github.com/pyenv/pyenv-virtualenv.git
Updating /Users/xxx/Library/Caches/Homebrew/pyenv-virtualenv--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 6d90f61 Merge pull request #290 from lmmarsano/fix-conda
==> ./install.sh
==> Caveats
To enable auto-activation add to your profile:
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
==> Summary
๐Ÿบ /usr/local/Cellar/pyenv-virtualenv/HEAD-6d90f61: 21 files, 62.8KB, built in 8 seconds
==> Caveats
==> pyenv-virtualenv
To enable auto-activation add to your profile:
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
$ pyenv commands
--version
activate
commands
completions
deactivate
exec
global
help
hooks
init
install
local
prefix
realpath.dylib
rehash
root
shell
shims
uninstall
version
version-file
version-file-read
version-file-write
version-name
version-origin
versions
virtualenv
virtualenv-delete
virtualenv-init
virtualenv-prefix
virtualenvs
whence
which

$pyenv activate && python โ€“version

Failed to activate virtualenv.

Perhaps pyenv-virtualenv has not been loaded into your shell properly.
Please restart current shell and try again.

from pyenv-virtualenv.

david-ninox avatar david-ninox commented on July 26, 2024

OK - I'll give that a try.
Thanks!

Did that work? I am getting a similar error

from pyenv-virtualenv.

lggwettmann avatar lggwettmann commented on July 26, 2024

Same here... how to solve this?

from pyenv-virtualenv.

sarojkmb avatar sarojkmb commented on July 26, 2024

Same issue for me

from pyenv-virtualenv.

bh4r4th avatar bh4r4th commented on July 26, 2024

pyenv local your_virtual_env creates a .python-version file in the file. Which made pyenv deactivate not to work for me. I simply deleted this .python-version file and used pyenv deactivate your_virtual_env to deactivate the env.

Give it a try if it's same case.

from pyenv-virtualenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.