Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with pip install git (after switching to python 3.6)

I just changed my project's interpreter to python 3.6 and have to install git library again.

When i run the command "pip install --proxy=some_proxy git" i get the following error message:

"Could not find a version that satisfies the requirement git (from versions: ) No matching distribution found for git".

Why does it happen ?

like image 340
Caffeine Avatar asked Mar 13 '18 07:03

Caffeine


People also ask

Does Python 3.6 have pip?

pip should be bundled with 3.6. Check the bin directory in your distribution, alternatively try pip3 .

Can I install git through pip?

You can use pip to install directly from a git repository. To install flask the shortest version of the command is pip install git+https://github.com/pallets/flask.git . Notice how pip has stored the specific commit hash used when installing.

What version of Python is pip using?

Key terms. pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers. A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide.

How do I switch from pip to Python 3?

Install setuptools for Python3 : apt-get install python3-setuptools. Now pip for Python3 could be installed by: python3 -m easy_install pip. Now you can use pip with the specific version of Python to install package for Python 3 by: pip-3.2 install [package]


2 Answers

I was getting the same error. Using

pip install gitpython

solved the problem

like image 65
Antony Joseph Avatar answered Nov 14 '22 21:11

Antony Joseph


The error means that there is no such package as git. Check the name of the package you want to install.

like image 23
SergiyKolesnikov Avatar answered Nov 14 '22 22:11

SergiyKolesnikov