question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipfile is not updating

See original GitHub issue

Hi there, I have a use case, I’ve created a project and did pipenv shell in that, then I wanna use this environment for other projects as well, for that I copied the environment path using pipenv --venv then in the desired second project I just did source {pasting the output of last command}/bin/activate so now I’ve activated the environment of first project in second project. Now When I am installing anything with pipenv install {any package} it creates(pipfile) in second project , but the pipfile in first project is not updated even I go in first project folder and trying using pipenv install, pipenv update, pipenv lock. Is there any solution/workaround for this problem and better if pipfile is not created in second project and just updated in first project whenever I install new package. Thanks

$ pipenv --support

Pipenv version: '2020.8.13'

Pipenv location: '/home/myounus/.local/lib/python3.6/site-packages/pipenv'

Python location: '/usr/bin/python3'

Python installations found:

  • 3.8.4: /home/myounus/.pyenv/versions/3.8.4/bin/python3.8
  • 3.8.3: /home/myounus/.pyenv/versions/3.8.3/bin/python3.8
  • 3.8.2: /home/myounus/.pyenv/versions/3.8.2/bin/python3.8
  • 3.8.1: /home/myounus/.pyenv/versions/3.8.1/bin/python3.8
  • 3.8.0: /home/myounus/.pyenv/versions/3.8.0/bin/python3.8
  • 3.7.4: /home/myounus/.pyenv/versions/3.7.4/bin/python3.7
  • 3.6.9: /usr/bin/python3.6
  • 3.6.9: /usr/bin/python3.6m
  • 3.6.9: /usr/bin/python3
  • 2.7.17: /usr/bin/python2
  • 2.7.17: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.6.9',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.15.0-117-generic',
 'platform_system': 'Linux',
 'platform_version': '#118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020',
 'python_full_version': '3.6.9',
 'python_version': '3.6',
 'sys_platform': 'linux'}

System environment variables:

  • LC_ADDRESS
  • XDG_CONFIG_DIRS
  • LC_TELEPHONE
  • LANG
  • DISPLAY
  • SHLVL
  • LOGNAME
  • XDG_VTNR
  • MANDATORY_PATH
  • LC_NAME
  • PWD
  • USER
  • XAUTHORITY
  • GTK_IM_MODULE
  • GJS_DEBUG_TOPICS
  • XDG_SESSION_ID
  • COLORTERM
  • GNOME_TERMINAL_SCREEN
  • DESKTOP_SESSION
  • XDG_SESSION_DESKTOP
  • GDMSESSION
  • GNOME_DESKTOP_SESSION_ID
  • DEFAULTS_PATH
  • WINDOWPATH
  • PAPERSIZE
  • LC_MEASUREMENT
  • LC_NUMERIC
  • LC_MONETARY
  • IM_CONFIG_PHASE
  • DBUS_SESSION_BUS_ADDRESS
  • QT_ACCESSIBILITY
  • USERNAME
  • CLUTTER_IM_MODULE
  • GNOME_TERMINAL_SERVICE
  • TEXTDOMAIN
  • LC_PAPER
  • TEXTDOMAINDIR
  • QT4_IM_MODULE
  • LC_IDENTIFICATION
  • XDG_MENU_PREFIX
  • SHELL
  • GNOME_SHELL_SESSION_MODE
  • XDG_DATA_DIRS
  • LC_TIME
  • TERM
  • SESSION_MANAGER
  • GJS_DEBUG_OUTPUT
  • XDG_SESSION_TYPE
  • GTK_MODULES
  • QT_IM_MODULE
  • SSH_AGENT_PID
  • PATH
  • XDG_CURRENT_DESKTOP
  • XMODIFIERS
  • HOME
  • XDG_RUNTIME_DIR
  • SSH_AUTH_SOCK
  • XDG_SEAT
  • VTE_VERSION
  • GPG_AGENT_INFO
  • OLDPWD
  • ZSH
  • PAGER
  • LESS
  • LSCOLORS
  • LS_COLORS
  • CONDA_EXE
  • _CE_M
  • _CE_CONDA
  • CONDA_PYTHON_EXE
  • CONDA_SHLVL
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /home/myounus/bin:/usr/local/bin:/home/myounus/anaconda3/condabin:/home/myounus/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  • SHELL: /usr/bin/zsh
  • LANG: en_US.UTF-8
  • PWD: /home/myounus

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
myounus96commented, Sep 21, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

'pipenv install' is not updating packages and Pipfile.lock #3772
Issue description When running pipenv install , Pipenv is installing the new package and updating all other packages whose version is not ......
Read more >
Is it possible to update Pipfile after installing packages using ...
It does answer the original question, in that installing the packages returned by pip freeze results in an updated Pipfile with the frozen ......
Read more >
Is my pipfile supposed to update if I do a pip install ... - Reddit
I want to build a little project using streamlit. In my terminal I did <pipenv shell> -> <pip install streamlit>. It worked and...
Read more >
Basic Usage of Pipenv - Read the Docs
$ pipenv install is used for installing packages into the pipenv virtual environment and updating your Pipfile. Along with the basic install command,...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
Pipfile won't lock when it tries to install packages that don't exist, i.e., typos. ... Pipenv looks for the package you specify, whether...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found