Pipenv take longer and instance hangs up
See original GitHub issueIβm using Pipenv for package management and configured Pipeline from Bitbucket to AWS EC2 instance via CodeDeploy.
While running the script
pipenv install
It takes longer and instance hangs up at
Installing dependencies from Pipfile.lock (a34ea0)β¦
The instance has to be restarted manually by stop-start to get it back to normal.
This is a weird scenario and Pipenv is not performing well.
Even though there is nothing updated in the package, I had to run the pipenv install
script.
- Is there any way to optimize this?
- Is there any way to check if the hash is outdated and only then run the
pipenv install
using bash script?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Common Pipenv Errors and How to Solve Them: Why Won't it ...
As long as this typo remains in the Pipfile, installing a package, existent or not, causes the locking to fail. You'll need to...
Read more >Frequently Encountered Pipenv Problems - Read the Docs
Run pipenv lock --clear and try again. The lock sequence caches results to speed up subsequent runs.
Read more >What does pipenv do after installing that takes up so much ...
It takes the hash from the artifact URL if possible instead of always recomputing it, which seems to drastically improve locking time.
Read more >Pipenv: Python Dev Workflow for Humans β pipenv 2022.12 ...
a short animation of pipenv at work. The problems that Pipenv seeks to solve are multi-faceted: You no longer need to use pip...
Read more >Specifying dependencies using a requirements file
In your development environment, you can use the pip freeze command to generate ... The following example uses Pipenv to install Django and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I run the two commands. one with
--deploy
and another without it in local development PC with 8 GB RAMThe time is almost the same for both commands. There is no effect of adding
--deploy
#2284I tried with
--deploy
flag but it still wait for installing the libraries even if they are not new. Is there any faster way to speed up the installation?The
pipenv
install is freezing the server and only way is to restart the server. This is really painful. All memory is consumed by it on a low memory server.I have AWS
t2.micro
instance with 1 GB RAM.