glob2 Package in Python3 - python-3.x

I try to install glob2 package with this command in the terminal:
pip install glob2
But i received an error: 'pip: command not found'
note: my platform is Python3 & Atom
would you please help me with it?

Extending on "Sianur's comment"
Sometimes we may get confused pip is part of which python version.
In that case below command will give details of pip Version.
$ pip -V
pip 18.1 from /home/user1/anaconda3/lib/python3.6/site-packages/pip (python 3.6)
In this case, the pip is coming from python3.6 installation.
Hope this helps.

Related

how to install latest version of python and pip in arch linux?

My default operating system is ArchLinux and the Python version installed on it is 3.1.
I installed version 3.9 using aur, but I do not know how to systematize this version of Python by default and install pip for it, because when I try to use pip, I get this message:
$ python3.9 -m pip
/usr/bin/python3.9: No module named pip
Pip should be installed normally, and if not, there should be a package for pip, but if you cannot install it for whatever reason, installing pip can be done via the ensurepip module:
python -m ensurepip
Reference the documentation for more information.

How to run pip from python3.7.1

I'm having python3.7.1 installed on my Mac, but when I run the command pip --version it shows syntax error. It's said that for python3 and greater versions pip is pre-installed, but why still I'm not able to use pip from python3?
pip might be outdated, check for updates running this command on terminal in your Mac:
pip install -U pip
Also doble check the version you have by running:
python --version
if you get
“Python is not defined”
you will need to reinstall it.
Further reading: Installing Python Modules

How can an old setuptools be upgraded if the old version encounters an error when trying to upgrade itself?

I appear to have encountered the following error by using an older version of setuptools with Python 3:
https://github.com/pypa/setuptools/issues/885
How can I actually advance to a newer version to escape this error? It's a bit of a catch 22.
python -m pip install --upgrade pip setuptools wheel
Download the source distribution, unpack it, and install it like this:
$ wget https://pypi.python.org/packages/e0/02/2b14188e06ddf61e5b462e216b15d893e8472fca28b1b0c5d9272ad7e87c/setuptools-38.5.2.zip
$ unzip setuptools-38.5.2.zip
$ cd setuptools-38.5.2
$ python3 bootstrap.py
Note: neither pip nor wheel are necessary to install setuptools.

Issue installing shapely Python Package

I am running python 3.6 on windows and am attempting to install Shapely using
pip install shapely==1.6b2
It is giving me the following errors
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Cameron\AppData\Local\Temp\pip-build-242ae_ih\shapely\
I have seen the other posts about this issue and have tried:
pip install --upgrade setuptools
pip install ez_setup
easy_install -U setuptools
Nothing seems to work and I am not sure what to do next. Any advice would be appreciated.
Thanks
You may try to use the binary from this unofficial site. Just use pip install {wheel file name} to install it.
Shapely‑1.5.17‑cp36‑cp36m‑win32.whl (32-bit)
Shapely‑1.5.17‑cp36‑cp36m‑win_amd64.whl (64-bit)
Hope this would make the installation easier.
I had a similar error for installing shapely-1.5.17 via pip install shapely, and installing this made the pip install command work thereafter:
sudo apt-get install libgeos-dev
As of 2020, you can now simply install Shapely for Windows with:
pip install shapely
(you many need --upgrade to get at least version 1.7.0, when binary wheels were added for Windows)

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.

Resources