Linked Questions
45 questions linked to/from How to upgrade all Python packages with pip
14
votes
1
answer
17k
views
upgrade all outdated pip packages discarding failures [duplicate]
I have a bash command to upgrade all pip packages that I installed.
The command is:
pip3 list --outdated | cut -d' ' -f1 | tail -n +3 | xargs pip3 install --upgrade
The problem is that if one of the ...
0
votes
0
answers
222
views
Why am i getting this error when i am trying to install pygame through cmd and pip? [duplicate]
Microsoft Windows [Version 10.0.19044.2251]
(c) Microsoft Corporation. All rights reserved.
C:\Users\User>py -3.10 -m pip install pygame
Collecting pygame
Using cached pygame-2.1.2.tar.gz (10.1 ...
1401
votes
34
answers
1.8m
views
How do I remove all packages installed by pip?
How do I uninstall all packages installed by pip from my currently activated virtual environment?
426
votes
19
answers
491k
views
Find all packages installed with easy_install/pip?
Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tools (in this case apt-get on ...
302
votes
18
answers
372k
views
Upgrade python packages from requirements.txt using pip command
How do I upgrade all my python packages from requirements.txt file using pip command?
tried with below command
$ pip install --upgrade -r requirements.txt
Since, the python packages are suffixed ...
301
votes
13
answers
206k
views
Stop pip from failing on single package when installing with requirements.txt
I am installing packages from requirements.txt
pip install -r requirements.txt
The requirements.txt file reads:
Pillow
lxml
cssselect
jieba
beautifulsoup
nltk
lxml is the only package failing to ...
164
votes
10
answers
375k
views
pip install failing with: OSError: [Errno 13] Permission denied on directory
pip install -r requirements.txt fails with the exception below OSError: [Errno 13] Permission denied: '/usr/local/lib/.... What's wrong and how do I fix this? (I am trying to setup Django)
Installing ...
188
votes
1
answer
84k
views
pip freeze creates some weird path instead of the package version
I am working on developing a python package. I use pip freeze > requirements.txt to add the required package into the requirement.txt file. However, I realized that some of the packages, instead of ...
33
votes
7
answers
41k
views
How to move all modules to new version of Python (from 3.6 to 3.7)
I just upgraded to python 3.7 and I realized that all my modules stuck with the previous version. Even Django is not recognised anymore. How can I do to transfer everything to the new version? I am a ...
53
votes
4
answers
23k
views
Equivalent of `package.json' and `package-lock.json` for `pip`
Package managers for JavaScript like npm and yarn use a package.json to specify 'top-level' dependencies, and create a lock-file to keep track of the specific versions of all packages (i.e. top-level ...
23
votes
6
answers
40k
views
MakeMigration Error on Django - ImportError: cannot import name 'FieldDoesNotExist' from 'django.db.models'
I got the following error after adding a new model field and running the makemigrations command:
ImportError: cannot import name 'FieldDoesNotExist' from 'django.db.models' (/usr/local/lib/python3.7/...
18
votes
1
answer
8k
views
Ansible roles/packages - Ansible Galaxy - error on installation MAC OSX
Im trying to install ansible-galaxy roles on Mac OS X El Capitan via CLI
$ ansible-galaxy install -r requirements.yml
I am getting this error:
ERROR! Unexpected Exception: (setuptools 1.1.6 (/System/...
9
votes
8
answers
18k
views
Can't install OpenCV python3.8
When I execute this command:
pip3 install opencv-python
I get the following error:
Installing build dependencies ... error ERROR: Command errored out with exit status 1:
...
14
votes
3
answers
70k
views
Python Django requirements.txt
I have a requirements.txt file containing all my dependencies but it is not processed correctly :
After a pip install -r requirements.txt, I get the following pip freeze :
argparse==1.2.1
wsgiref==0....
3
votes
3
answers
16k
views
ImportError: cannot import name 'RSA' from 'Crypto.PublicKey'
Hi I am trying to connect my python script to the google firebase. I have run into some issues with installing pyrebase. when i install using pip install pyrebase i get this error message:
image 1:
...