-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv fails to install Jupyter in a Python3 environment when Python2 is present #994
Comments
@nsecord your assumptions are correct, and actually pipenv does this correctly. Note that in the first instance you saw:
The issue is with how |
@techalchemy thank you for your response, I'll try what you have suggested. One question, by installing pipenv using pip3, will I run into problems in the opposite sense if I should need to create a Python 2 environment? |
@nsecord you shouldn't encounter this problem going in the other direction, so this should be a simple temporary fix. |
In my experience Python 3 doing stuff to python 2 stuff is a lot easier than python 2 doing stuff to python 3 stuff. A very well put together sentence I know, but ya'll get the point! |
I have the same old issue with When trying your fix:
Are you sure that this distribution exists? Or should I add an external PyPI for that? |
After installing |
Installing pipenv with pip3 did the trick. Thanks. |
I'm having the same problem but I'm a novice. How do you reinstall it with 'pip3 install pipenv3'? |
Describe the issue briefly here.
pipenv
fails to installjupyter
in a newly created Python 3 environment when Python 2 is also presentEnvironment
OS Type : macOS Sierra 10.12.6
Python version: both Python2 and Python3 (installed and updated via homebrew)
Python 2
Python 3
Pip2
Pip3
Pipenv
Expected result
It seems that if you want to install
Jupyter
for a Python3 environment, it wants to be installed usingpip3
explicitly (at least that is what they say in the installation instructions).If I understand correctly,
pipenv
will invokepip
to do the package installation but if you have a legacy Python2 installation,pip
will point topip2
. So what do you do in this case when you want to create a Python3 environment?My expectation was that when I create a new environment with
pipenv --three
, it should invoke pip3 each time I install a package viapipenv install package
. It doesn't seem to be the case or am I doing something wrong?Actual result
See failure message below.
Steps to replicate
If I run
pip install --three jupyter
, it removes the existing Python3 environment, creates a new Python3 environment and then I get the same error message again.If I remove the
Pipfile
, delete the environment and redo using Python 2, everything runs smoothly and installs.The text was updated successfully, but these errors were encountered: