-
-
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 jupyterlab #2880
Comments
I've also seen this on the latest pipenv master, unfortunately. I have not undertaken the effort to find a minimal reproducing example so I have several occurences of prompt-toolkit.
This is after doing @whyboris you can use pip install --skip-lock as a temporary solution. |
I'm also experiencing the same issue. Skipping lock is a "solution" but not a good one if you want to be serious on how you manage your environment. |
Same issue as well. Is it possible the issue is related to the recent release of |
Same issue for me. I guess it's impossible to be both <2.0.0 and >=2.0.0 at the same time, eh? |
To clarify @odoublewen's comment, somewhere in the Jupyter ecosystem, there are conflicting requirements, where some packages require The confusing thing for me is that Another, possibly cleaner workaround, is to remove
I have jupyter as |
Same issue as well. As a workaround you can install
|
Incidentally, I get the same error trying to run |
Installing I'm using python 3.7.0 and pip 18.0 |
I can't even install jupyter now without having to use Pipfile:
|
EDIT: this uses pipenv 2018.7.1 This issue seems to be related to #875, which does not seem to be completely solved (cc @vphilippon @nateprewitt @techalchemy ). I have a Pipfile with only jupyter with no constraint:
When I run Then in round 2, it finds the best candidate for So it seems to be pinning the candidates and adding them as constraints, even though So it really seems like #875 is not fixed, unless I am missing something. Is there a reason pipenv's dependency resolution shouldn't find that, say, |
My configuration works just fine as a temporary workaround mentioned earlier by @wpsamurai. There is no need to use
Btw:
|
I suppose that the version of Python may cause the problem. $ pyenv local 3.6.6
$ pipenv install jupyterlab However, in another directory, I invoked the following commands, which resulted in the prompt_toolkit problem. $ pyenv local 3.7.0
$ pipenv install jupyterlab |
In a new clean venv |
Issue description
I run
pipenv install jupyterlab
It correctly installs
v0.34.11
Gives this error:
While the tree
pipenv graph
showsprompt-toolkit
only in two lines:Expected result
Install without the weird version error
Actual result
see above.
Steps to replicate
create a new directory with
python_version = "3.6"
and runpipenv install jupyterlab
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/bin/python3.7'
Other Python installations in
PATH
:2.7
:/usr/local/bin/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
3.6
:/Users/byakubchik/.local/share/virtualenvs/ml-with-python-and-keras-u1_RmhqT/bin/python3.6m
3.6
:/Users/byakubchik/.local/share/virtualenvs/ml-with-python-and-keras-u1_RmhqT/bin/python3.6
3.6
:/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
3.6
:/usr/local/bin/python3.6
3.7
:/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
3.7
:/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
3.7
:/usr/local/bin/python3.7
3.6.4
:/Users/byakubchik/.local/share/virtualenvs/ml-with-python-and-keras-u1_RmhqT/bin/python
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/usr/local/bin/python2
3.6.4
:/Users/byakubchik/.local/share/virtualenvs/ml-with-python-and-keras-u1_RmhqT/bin/python3
3.7.0
:/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
3.6.4
:/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
3.7.0
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
PATH
TERM_PROGRAM
NVM_CD_FLAGS
PIP_PYTHON_PATH
SHELL
TERM
TMPDIR
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
ZSH
USER
NVM_DIR
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
VIRTUAL_ENV
PAGER
LSCOLORS
PIPENV_ACTIVE
_
PWD
LANG
XPC_FLAGS
PYTHONDONTWRITEBYTECODE
XPC_SERVICE_NAME
HOME
SHLVL
LOGNAME
LESS
LC_CTYPE
NVM_BIN
DISPLAY
COLORTERM
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/usr/local/Cellar/pipenv/2018.7.1/libexec/tools:/Users/byakubchik/.local/share/virtualenvs/ml-with-python-and-keras-u1_RmhqT/bin:/usr/local/opt/opencv3/bin:/usr/local/Cellar/pipenv/2018.7.1/libexec/tools:/usr/local/opt/opencv3/bin:/Users/byakubchik/.nvm/versions/node/v8.11.2/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/.composer/vendor/bin:/Library/TeX/texbin:/usr/local/go/bin:/opt/X11/bin
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
PWD
:/Users/byakubchik/Desktop/myML/ml-with-python-and-keras
VIRTUAL_ENV
:/Users/byakubchik/.local/share/virtualenvs/ml-with-python-and-keras-u1_RmhqT
Contents of
Pipfile
('/Users/byakubchik/Desktop/myML/ml-with-python-and-keras/Pipfile'):The text was updated successfully, but these errors were encountered: