Questions tagged [pipenv]
For questions related to Python's pipenv dependency management tool.
1,298
questions
1
vote
1
answer
32
views
"unable to import requests" in web2py even though requests is accessible directly through python
I'm attempting to integrate MSAL, which requires the requests module.
I'm running Python 3.7 on Linux and using pipenv to manage the environment. I'm also using web2py 2.24.1 from source (as in I ...
0
votes
1
answer
33
views
An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied when using S3
I'm following an online Udemy course (Writing production-ready ETL pipelines in Python / Pandas | Udemy). I'm trying to connect AWS using CLI and accessing the dataset.
However I get the error:
An ...
0
votes
0
answers
21
views
Pipfile is getting created using python 3.9 instead of 3.11
I have started using the pipenv package to manage the virtual environments through VSCode. The problem is whenever I have tried creating a virtual env using the command pipenv shell, it is creating a ...
0
votes
0
answers
30
views
pipenv installation issue in Windows 10
click to see the error
I am trying to install pipenv in my windows 10 for my PyCharm. As you can see, the requirements are all fulfilled. But there is an error. WARNING: Failed to write executable - ...
0
votes
0
answers
40
views
How to clear pipenv's cache
I am trying to run a simple pipenv install command on a project which returns an error with the numpy library. I already ran the pipenv --clear command, but when I run:
pipenv install --skip-lock --...
0
votes
0
answers
45
views
pipenv can't install requirements.txt. Error: ERROR: metadata generation failed
I'm trying to install the following packages from requirements.txt for a cloned repository.
torch
openai
langchain
graphviz
langchain-visualizer
pydantic
wandb
pandas
spacy
textstat
transformers
...
-1
votes
0
answers
17
views
Getting a json.decoder.JSONDecodeError on Heroku while deploying Flask app - How to resolve?
How can I resolve the issue of broken manual and automatic deployments in Heroku after attempting to upgrade a staging app to stack22 and then reverting to stack20 with the last working commit, while ...
0
votes
0
answers
20
views
Pipenv shell won't open an environment in current directory
When I create a new directory and change to it, I try to start a new pipenv environment and it opens to my root directory. I was messing with my path, adding geckodriver, and that seemed to have ...
0
votes
1
answer
87
views
Error with pipenv in Dockerfile: No such option: --requirements Did you mean --quiet?
I am trying to build a docker image to run an application, the Dockerfile is as follows:
#Pull a image
ARG BASE_IMAGE=python:3.9.0-slim-buster
FROM ${BASE_IMAGE} AS requirements-image
# set working ...
0
votes
0
answers
34
views
pipenv: "python-dotenv" reappearing after every pipenv install
every time i run pipenv install it will reinstall python-dotenv.
I was using python-dotenv for a while, but I want to use django-dotenv instead.
So, I want to remove it, hence i execute:
$ pipenv ...
0
votes
1
answer
20
views
Pipenv: Staircase package downgraded after updating to Pandas 2.0
I'm running pipenv 2023.3.20, pip 21.1.3. I updated pandas to version 2.0 from version 1.5.3. I did have to specify this version explicitly because updating as is wasn't actually updating pipfile....
0
votes
0
answers
60
views
Use same Pipenv in multiple Github Action jobs
Goal
I would like to run a Github actions workflow that has multiple jobs. I would like those jobs to have as little duplication as possible (I've come to accept that some duplication may be ...
0
votes
1
answer
80
views
virtualenv Error: FileNotFoundError, No such File /home/user/.local/share/virtualenvs/project-xxxxxxxx/bin/python
What could cause this issue, are you familiar with this error message?
I googled and the only similar issues are years old and apparently fixed.
pipenv --python 3
Creating a virtualenv for this ...
0
votes
0
answers
19
views
Flask Apache Ubuntu pipenv install AttributeError: module 'distutils' has no attribute 'util'
When I try to execute the 'pipenv install' command, I get the error: Backtrace (last call last):
File "/usr/bin/pipenv", line 11, in
load_entry_point('pipenv==11.9.0', 'console_scripts', '...
1
vote
0
answers
45
views
Unable to build wheels in pipenv
I have recently moved to pipenv from using the traditional requirements.txt file and its not going too well. I am trying to build wheels for one of my Python modules and I always get an error while ...
0
votes
0
answers
21
views
PyCharm Pipenv Failing to install correct Python Version
Problem
Using a 3.11 base interpreter, and a Pipenv file that specifically says to use Python 3.11, creating a new virtual environment in PyCharm results in a Python 3.9 interpreter.
Input
Output
My ...
0
votes
0
answers
54
views
Pipenv Lock fails with Attribute Error and Invalid Argument Python 3.9.16
Pulled the changes committed from another dev and pipenv install works, but when I try pipenv lock I get the below error after installing/setting my python version to 3.9.16 using pyenv..
Any ideas???
...
1
vote
0
answers
30
views
Partial Problem from configuration settings in `$DJANGO_SETTINGS_MODULE`
Tree Directory:
.
├── Pipfile
├── Pipfile.lock
├── README.md
├── Strawberry
│ ├── init.py
│ ├── pycache
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── catalog
│ ├── init.py
│ ├── ...
1
vote
0
answers
23
views
Automate a pipenv update run before merging
My team has decided they want to enforce installing the latest version of packages before merging to master so that they don't become too out of date. So someone set up a pre-commit hook to call ...
0
votes
1
answer
510
views
Does pyproject.toml need to exist in the target directory when using poetry to install a local package?
I have a local package, "mypackage", inside a venv environment. I successfully ran poetry install and I'm able to import it into Python sessions started inside of the same virtual env. Now I ...
0
votes
1
answer
429
views
why pipenv install gives me Package installation failed... error
I want to run a django app so whenever i run pipenv install to install all the packages from my pipfile it gives me the error below
note :
i'm running on windows
cmake did nothing
it doesn't change ...
0
votes
1
answer
60
views
How to update custom package version?
I am trying to create a python package that I can reuse in other projects. I did follow this tutorial: Create Your Custom, private Python Package That You Can PIP Install From Your Git Repository.
It ...
0
votes
1
answer
161
views
pipenv install fails in Django project
i have a django project and when i tried to run python manage.py migrate i git this error
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ...
0
votes
1
answer
73
views
Why command to update pipenv is not working?
I am trying to update pipenv on mac.
Following Why can't I update pipenv to latest version?
I did:
pip install --upgrade pipenv
It executes without errors (I get multiple Requirement already ...
0
votes
0
answers
65
views
running a django project in a virtualenv on both windows and WSL
How can I make a $ pipenv shell and then a $ python3 manage.py runserver work inside the WSL just like it runs on Windows terminal? I want to code in both windows and linux environment and run the ...
0
votes
1
answer
295
views
Pip/Pipenv Can't Download Any Packages with Read Timeout (Ubuntu 22.04 WSL 2)
This is driving me a little crazy. For some reason, immediately after upgrading to Windows 11 22H2, neither pip nor pipenv are able to successfully download packages at all. Error output is shown ...
2
votes
1
answer
381
views
Jupyter Notebook, missing toolbar with nbextensions
I'm using Ubuntu 20.04 and working in a virtual environment set up with pipenv. (Python version is 3.8) I like Jupyter Notebook and decided to install the package nbextensions. Installation finished ...
0
votes
1
answer
64
views
pipenv install django=~3.1.0 command giving error
Installing django=~3.1.0...
Resolving django=~3.1.0...
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pipenv/patched/...
0
votes
0
answers
26
views
create a pipenv with PyCharm, by using an old Python 3.5 version
I am writing you because I am trying to create a pipenv environment on PyCharm, to work on a code which can only work on very old Python versions.
In order to achieve this, I downloaded an old version ...
0
votes
1
answer
164
views
Virtual environment and django is not created in my directory. Python 3.11 [duplicate]
PS C:\Users\38099\Desktop\courses> pipenv install django==4.0.8
Creating a virtualenv for this project...
Pipfile: C:\Users\38099\Pipfile
Using C:/Users/38099/AppData/Local/Programs/Python/...
1
vote
1
answer
82
views
Why does 'pipenv lock -r' errors with 'No such option: -r'?
With this minimal Dockerfile
FROM public.ecr.aws/lambda/python:3.8
RUN pipenv lock -r > requirements.txt
The pipenv command fails with the error message:
Usage: pipenv lock [OPTIONS]
Try 'pipenv ...
0
votes
0
answers
43
views
Is it possible to divide dev-packages into several directories?
In pip file I now have this structure
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pydantic = ">=1.8.0,<2"
kubernetes = &...
1
vote
0
answers
30
views
What's pipenv equivalent for these pip options: --global-option=build_ext --global-option="-I/path/to/include/"
Does anybody know the Pipenv equivalent for pip options:
--global-option=build_ext --global-option="-I/path/to/include/"
I'm trying to use pipenv in context of a custom package build from ...
1
vote
1
answer
67
views
Is it necessary to run activate command after activating virtual environment using pipenv shell command?
As far as I know, for activating the virtual environment it's enought to just run pipenv shell
But in my case after running this command the parentheses at the beginning of the command prompt doesn't ...
0
votes
1
answer
37
views
How to set up a pipenv from pipfile in pycharm
I have just downloaded a project where there is a pipfile. When I open it on pycharm it asks me if I want to create a pipenv, and asks for an executable. I created a pipenv already but I dont know ...
0
votes
0
answers
68
views
VSCode how to activate conda env and pipenv env
I work on a project that uses both conda and pipenv. The pipenv env contains the actual python interpreter while the conda env contains the cuda libraries for GPU acceleration. So the conda env needs ...
0
votes
1
answer
169
views
pipenv and OS X Monterey - can't install dependencies from Pipfile
I am running OS X Monterey 12.6.3 and I installed pipenv 2023.2.4 via brew with brew install pipenv.
I have the following Pipfile and Pipfile.lock, which I have been able to run pipenv install on on ...
0
votes
0
answers
70
views
How to install Python packes listed in `Pipfile` using `pipenv` and the `--target` flag (via `--extra-pip-args`)?
A) The following does not install the packages from Pipfile into the --target directory foo:
pipenv install --extra-pip-args="--target=foo"
B) On the other hand, this does install the ...
0
votes
0
answers
97
views
ERROR installing dbx - pip install dbx - pipenv error cffi
I am trying to set a connection with Visual Studio Code with Databricks using pyenv following these instructions: https://docs.databricks.com/dev-tools/ide-how-to.html
When I try to install dbx (pip ...
0
votes
0
answers
94
views
Executing commands incorrectly in Jenkins pipeline shell script
I set pyenv to an enabled state. And if there is no python version corresponding to the pipfile through pipenv, I tried to install the corresponding python version automatically through pyenv.
[...
0
votes
0
answers
23
views
Auto setting Pycharm interpreter
I work in a Devops team in-charge of a large development environment for a lot of engineers.
We have a git repository and use python virtual environment (pipenv) for the code.
Our way of setting up ...
0
votes
0
answers
78
views
numpy in a virtual environment: DLL load failure on attempted parallelization
I'm doing some scientific computation in python, and recently switched away from Anaconda since it doesn't yet support python 3.10 (which has some new features I'd like to use). I am now running on ...
0
votes
0
answers
27
views
fix setuptools version when installing libraries using setup.py
This question is somewhat similar to the one here, but I cannot make it work.
So suppose that I have a set of packages (say 2) to install and I want to use pipenv. If I do pipenv install on the ...
0
votes
0
answers
164
views
How to use pipenv to create a virtual environment with a specific python version?
I have made a project folder here: Desktop/xetra_project
I installed python 3.11 and would like to use pipenv to create a virtual environment with python 3.11 for this project.
When I try to create a ...
0
votes
0
answers
12
views
creating and publishing python package in offline environment [duplicate]
The main problem is, to create such a package in offline environment, you need to pack all the dependencies that it requires within the package.
Then when you will install it, it won't need to look at ...
0
votes
0
answers
58
views
What is the reliable way to select current directory's python with pyenv + pipenv or pip
I have two problems:
pipenv ignores pyenv settings;
my pip shortcuts are ignoring pyenv settings too:
iuri@tartaruga:~$ pyenv version
3.9.16 (set by /home/iuri/.pyenv/version)
iuri@tartaruga:~$ pyenv ...
0
votes
1
answer
159
views
Alpine Docker image with pandas installed on Pipenv
We need an alpine based docker image that can have pandas package within pipenv
This works.
FROM python:3-alpine
RUN apk add g++ && \
pip install numpy
But, our process needs the ...
1
vote
0
answers
263
views
pipenv install cannot find any packages
I cannot build a virutal environment using pipenv install, I always get the error No matching distribution found for aws-lambda-powertools if I remove that package I will get the same error for ...
0
votes
0
answers
21
views
Pipenv issues when running cron job
I have a cron job to download files by the minute:
[ec2-user]$ crontab -l
* * * * * /var/xxy/xy/xyy/run.sh
The contents of run.sh are:
/usr/local/bin/pipenv run start -i config.ini --json /var/xxy/xy/...
0
votes
0
answers
70
views
pipenv install of packages failing: pointer is missing a nullability type specifier (_Nonnull, _Nullable
I’m having this weird issue with a virtual environment that is making me nuts
This is what I’ve tried so far. Maybe more options, but
Changed ipdb to dev packages
Updated pipfile
#### EXPLODED HERE ###...