Comments (9)
$ 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.
$ 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.
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.
OK - I'll give that a try.
Thanks!
from pyenv-virtualenv.
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.
OK - I'll give that a try.
Thanks!
Did that work? I am getting a similar error
from pyenv-virtualenv.
Same here... how to solve this?
from pyenv-virtualenv.
Same issue for me
from pyenv-virtualenv.
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)
- `pyenv virtualenvs` failure on macOS Big Sur HOT 1
- Something like virtualenv-clone HOT 7
- [FR] Local virtualvenvs + registering them / using them through `.python-version` HOT 14
- Force creating venv with same name doesn't update Python version
- Set CONDA_PROMPT_MODIFIER env var when activating conda environment HOT 5
- Env's name disappears from the prompt when spawning a subshell HOT 6
- python3-config (along with other tools) does not respect the version virtualenv hook on HOT 6
- pyenv deactivate doesn't deactivate env HOT 1
- pyenv virtualenv does not correctly link the c++ libraries associated to the python package HOT 1
- New release? HOT 3
- Latest version HOT 1
- Incorrect version reported by `pyenv virtualenv --version` HOT 1
- Cannot create new virtualenv with "system" Python if it's 3.11+ HOT 1
- Hooks for virtualenv-delete HOT 1
- Hooks don't work under /usr/share/pyenv/plugins
- Virtualenv not isolated HOT 1
- Don't use `.python-version` for auto-activation HOT 3
- "tox: command not found" despite tox being present in the active environment HOT 1
- Unable to use `venv/bin/activate` when the virtual environment of pyenv-virtualenv is set. HOT 2
- virtualenv-init break mc (Midnight Commander) subshell
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyenv-virtualenv.