-
-
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
I can't install Django (or any other package) using pipenv #2944
Comments
Fixed on master via #2935. |
I have the same problem. Downgrading to pip 18.0, as suggested on #2935 did not solve for me |
Actually, it didn't help me either, so in the meantime, I installed from source |
new release is out also, good luck! |
Pipenv (19) would not install any of my packages on Ubuntu (16), so I'm going back to using virtualenv |
I can't install Django (or any other package) using pipenv. I "think" I have a conflict with the Python versions installed on my system (Ubuntu 18.04), or when installing pipenv with pip.
How could I solve this problem? Thanks in advance
pipenv installed by:
$ pip install --user pipenv
$ python --version
Python 2.7.15rc1
(by default, even though I use an alias to run python3 by default.
alias python='/usr/bin/python3.6' )
$ pipenv --python 3
Creating a virtualenv for this project...
Pipfile: /home/ro/workspace/pyt/django-jwt/Pipfile
Using /usr/bin/python3 (3.6.6) to create virtualenv...
⠋Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/ro/.local/share/virtualenvs/django-jwt-l8_cwxbw/bin/python3
Also creating executable in /home/ro/.local/share/virtualenvs/django-jwt-l8_cwxbw/bin/python
Installing setuptools, pip, wheel...done.
Setting project for django-jwt-l8_cwxbw to /home/ro/workspace/pyt/django-jwt
Virtualenv location: /home/ro/.local/share/virtualenvs/django-jwt-l8_cwxbw
Creating a Pipfile for this project...
$ pipenv install django
Installing django...
Traceback (most recent call last):
File "/home/ro/.local/bin/pipenv", line 11, in
sys.exit(cli())
File "/home/ro/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/ro/.local/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
...
..
File "/home/ro/.local/lib/python2.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 704, in from_line
line, extras = _strip_extras(line)
TypeError: 'module' object is not callable
/home/ro/.local/lib/python2.7/site-packages/pipenv/_compat.py:113: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/pipenv-Bpi57Z-requirements'>
warnings.warn(warn_message, ResourceWarning)
$ pipenv --support
pipenv --support Pipenv version: `'2018.7.1'`Pipenv location:
'/home/ro/.local/lib/python2.7/site-packages/pipenv'
Python location:
'/usr/bin/python'
Other Python installations in
PATH
:2.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
3.6
:/usr/bin/python3.6m
3.6
:/usr/bin/python3.6
2.7.15
:/usr/bin/python
2.7.15
:/usr/bin/python2
3.6.6
:/usr/bin/python3
PEP 508 Information:
System environment variables:
KDE_SESSION_VERSION
XCURSOR_SIZE
XDG_CURRENT_DESKTOP
XDG_SESSION_TYPE
LOGNAME
USER
PATH
XDG_VTNR
HOME
PAM_KWALLET_LOGIN
DISPLAY
KDE_FULL_SESSION
LANG
PROFILEHOME
TERM
SHELL
COLORFGBG
XAUTHORITY
LANGUAGE
SESSION_MANAGER
XDG_DATA_DIRS
GS_LIB
MANDATORY_PATH
KONSOLE_PROFILE_NAME
XCURSOR_THEME
KONSOLE_DBUS_WINDOW
RBENV_SHELL
QT_ACCESSIBILITY
WINDOWID
XDG_RUNTIME_DIR
SSH_AGENT_PID
__GIT_PROMPT_IGNORE_SUBMODULES
KONSOLE_DBUS_SESSION
XDG_SESSION_CLASS
XDG_SESSION_DESKTOP
KDE_SESSION_UID
__GIT_PROMPT_SHOW_CHANGED_FILES_COUNT
SSH_AUTH_SOCK
KONSOLE_DBUS_SERVICE
PAM_KWALLET5_LOGIN
PIP_PYTHON_PATH
GTK2_RC_FILES
XDG_SEAT_PATH
XDG_SESSION_PATH
GIT_BRANCH
LESSOPEN
XDG_SESSION_ID
SHELL_SESSION_ID
_
DBUS_SESSION_BUS_ADDRESS
GTK_RC_FILES
DESKTOP_SESSION
GPG_AGENT_INFO
LESSCLOSE
DEFAULTS_PATH
XDG_SEAT
OLDPWD
__GIT_PROMPT_IGNORE_STASH
PYTHONDONTWRITEBYTECODE
__GIT_PROMPT_SHOW_UNTRACKED_FILES
SHLVL
PWD
QT_AUTO_SCREEN_SCALE_FACTOR
COLORTERM
XDG_CONFIG_DIRS
LS_COLORS
__GIT_PROMPT_SHOW_UPSTREAM
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/heroku/bin:/home/ro/.rbenv/plugins/ruby-build/bin:/home/ro/.rbenv/shims:/home/ro/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ro/.local/bin
SHELL
:/bin/bash
LANG
:es_ES.UTF-8
PWD
:/home/ro/workspace/pyt/django-jwt
Contents of
Pipfile
('/home/ro/workspace/pyt/django-jwt/Pipfile'):The text was updated successfully, but these errors were encountered: