pip / pip3 not install packages to latest python version - python-3.x

I have begun learning on Linux. I got a Raspberry Pi 4. I Was able to update python from 3.7 to 3.9.4 and make it the default but pip / pip 3 will not install packages to the 3.9 site-packages. I have tried to uninstall both but neither are working.
Any ideas?
Thanks!

Related

no module named "pip" in python

I am on python 3.8.5 I am using python and pip, pipenv recently without any issue on any terminal and project. But, today when I try to do anything with pip or pipenv, I get this error
No Module Named "pip"
I even installed python latest version again and I know that on 3.8.5, I don't have to download pip. I can't even check the pip version in the terminal.
Type in sudo apt-get install python3-pip in the terminal to install pip

Installing Spacy is failing with Python 3.7 on Windows 10

Installing Spacy on Windows 10 with pip is failing. Installing any other of a number of modules is working fine for me.
Here is a pastebin containing the error message:
pip install -U spacy
or
python -m pip install spacy
output:
https://pastebin.com/Y9np4veN
I have tried this both with and without virtualenv and it is failing in the same manner either way. I have also already tried installing and updating setuptools. I've ensured that I am using Python 3.7 and pip3. There is no other version of python or pip installed on my PC.
I downgraded to Python 3.6 and was able to successfully install spacy
Using x86-64 ("64-bit") version of Python 3.7 (3.7.4) instead of x86 ("32-bit") one on Windows fixed the issue for me.

Use or install different versions of python3 pip

I'm trying to install packages for my python 3.5.0 versus my python 3.4.3
I can run both by typing either python3.4 or python3.5
I have pip2 and pip3. I also ran the script sudo easy_install3 pip, which made me be able to use pip3.4 But I am still having trouble installing modules for python3.5. pip3 just installs for python3.4
I am looking to install termcolor for python3.5 and I am having no success. Can anyone help?
I am on Windows, and you appear not to be, but maybe the following will help.
If pip is in your system's equivalent of python35/Lib/site-packages, then python3.5 -m pip should run pip so that it installs into the 3.5 site-packages.
If you do not have pip in the 3.5 site-packages, copy its directory, along with its dependencies (pip....dist-info/, setuptools/, setuptools....dist-info/, and easyinstall.py) from the 3.4 site_packages.
Or, if pip3 or even pip3.4 is in python35/Scripts, run it with its full path name so you are not running the 3.4 version.

Install Swampy module in Python 3.5.0 (which is installed through Anaconda)

I have installed Python 3 using Anaconda and I need to install the Swampy module. Could you please advice me on how to proceed?
I could not find a conda package for it. So use pip:
pip install swampy
works also with Anaconda installed Python.
The installer conda that comes with Anaconda knows about the newly installed package:
conda list
....
swampy 2.1.7 <pip>

How to install python34 module tweepy onto raspberry pi with pip

I am trying to install tweepy for python 3.4 on my raspberry pi, but when I run pip install tweepy, tweepy installs, but only for python 2.7. What is the command/procedure for installing tweepy for python 3.4?
Any help will be appreciated. Thanks.
Try pip3.4 install tweepy.
Pip supports pip{version} to install packages in multiple versions.

Resources