Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Having Trouble Installing Python Packages With pip

I am relatively new to python and trying to install the base64 package through my cmd (that is system32/cmd.exe <- not sure if this is relevant).

I am using python 2.7.12 64 bit pip 9.0.1

My code is:

pip install base64

My error is:

Could not find a version that statisfies the requirement base64 (from   versions : )
No matching distribution found for base64  

I was successfully able to install the datetime package, but I received the above error when trying to install pprint. So it is not directly related to base64.

Will be happy to post any other needed information at request, please give me a general idea how I can track down the information needed to solve this problem.

like image 758
user3390310 Avatar asked Dec 03 '22 23:12

user3390310


1 Answers

The pip error message means that the package was not found. Typically that means the package name is not correct. In your case, the package is imported import base64 but the actual package name is pybase64: pip install pybase64

In similar cases you can find the correct package name by using google, for example with 'install base64 python'

like image 133
Cassandra Avatar answered Dec 08 '22 04:12

Cassandra