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.

pipenv install does not create two new files, Pipfile and Pipfile.lock

See original GitHub issue

Be sure to check the existing issues, both open and closed.

I ran pipenv install into existing django 1.11 project, but it does not create two new files, Pipfile and Pipfile.lock, in project directory. However a new virtual environment is created.

Describe your environment
  1. OS Type - Ubuntu 16
  2. Python version: $ python3 -V 3.5.2
  3. Pipenv version: $ pipenv --version version 9.0.1
Expected result

This should create two new files, Pipfile and Pipfile.lock, in project directory

Actual result
pipenv install 
Creating a virtualenv for this project…
Using /usr/bin/python3.5m to create virtualenv…
⠋Running virtualenv with interpreter /usr/bin/python3.5m
Using base prefix '/usr'
New python executable in /home/muhammadtaqi/.local/share/virtualenvs/projects-3nzJ4ToY/bin/python3.5m
Also creating executable in /home/muhammadtaqi/.local/share/virtualenvs/projects-3nzJ4ToY/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/muhammadtaqi/.local/share/virtualenvs/projects-3nzJ4ToY                                                                                                           Installing dependencies from Pipfile.lock (b5430f)…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 6/6 — 00:00:00
To activate this project's virtualenv, run the following:
 $ pipenv shell

It creates Pipfiiles in one directory upto the project directory. in /home/muhammadtaqi/project directory

Steps to replicate

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).

  1. Clone this
  2. Run pipenv install --three

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

ArchTaqicommented, Jan 17, 2018

I’m not sure, but in my case it generated the files one directory up from the project, I manually deleted those files and then again run pipenv install , then it generates in the directory i was running the command.

Olimovvcommented, Dec 24, 2021

Thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv not creating Pipfile and not creating environment in ...
After deleting the Pipfile and the Pipfile.lock from the home directory ~/ I was able to create a new virtual environment without conflict....
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
Locking Issue: Pipfile Contains a Reference to an Inexistent Package ... Pipfile won't lock when it tries to install packages that don't exist,...
Read more >
Basic Usage of Pipenv - Read the Docs
--dev — Install both develop and default packages from Pipfile . · --system — Use the system pip command rather than the one...
Read more >
Use Pipfile | PyCharm Documentation - JetBrains
lock file. So, any requirement added to Pipfile but not locked will be ignored. Let us select the pipenv update command to install...
Read more >
Basic Usage of Pipenv
Do not keep Pipfile.lock in version control if multiple versions of Python are ... To create a new virtualenv, using a specific version...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found