Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new virtualenv fails #2

Open
flicht opened this issue Jun 12, 2020 · 5 comments
Open

Creating new virtualenv fails #2

flicht opened this issue Jun 12, 2020 · 5 comments

Comments

@flicht
Copy link

flicht commented Jun 12, 2020

After installing this plugin I cannot create a new virtualenv. I get the following error:

>>> pyenv virtualenv test
Looking in links: /var/folders/pg/4g0whhsj4jvgx6mn7q482nt00000gp/T/tmpy0ymny0s
Requirement already satisfied: setuptools in ~/.pyenv/versions/3.8.2/envs/test/lib/python3.8/site-packages (41.2.0)
Requirement already satisfied: pip in ~/.pyenv/versions/3.8.2/envs/test/lib/python3.8/site-packages (19.2.3)
pyenv: jupyter: command not found

The `jupyter' command exists in these Python versions:
  3.8.1/envs/py3
  py3

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.

I get the same error when I try to install a new version of python using pyenv

pyenv install 2.7.15

When I uninstall the plugin, I no longer get any errors.

Any ideas why this might be?

@flicht flicht changed the title Error when creating new virtualenv Creating new virtualenv fails Jun 12, 2020
@bhanukaManesha
Copy link

I also get the same error.

@papr
Copy link

papr commented Oct 23, 2020

A workaround is to install jupyter in the environment defined in $(pyenv root)/version.

@aiguofer
Copy link
Owner

Sorry for the delayed response, for some reason I never got a notification about this.

I personally have jupyter installed globally using pipx, but you could install it using brew, a linux package manager or some other means. I suppose the extension could check if jupyter is already in the path and pip install it if not

@sebnapi
Copy link

sebnapi commented Aug 25, 2023

Sorry for the delayed response, for some reason I never got a notification about this.

I personally have jupyter installed globally using pipx, but you could install it using brew, a linux package manager or some other means. I suppose the extension could check if jupyter is already in the path and pip install it if not

No that would be awful, because you couldn't create any clean environments more, without jupyter dependencies, so especially if you have a project with conflicting versions of dependencies with jupyter's. I actually was looking for how to switch it off or remove for specific environments.

@sebnapi
Copy link

sebnapi commented Aug 25, 2023

Is it possible to create a switch in etc/pyenv.d/install/register-jupyter-kernel.bash to decide if it should register a kernel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants