How do you install the xlrd package on a mac? - python

I am trying to install the xlrd package on my mac to use in Python 3.5.4 to be able to read excel documents.
I have opened 'Terminal' and typed:
pip install xlrd
but I keep getting this error:
Downloading/unpacking xlrd
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement xlrd
Cleaning up...
No distributions at all found for xlrd
Storing debug log for failure in /Users/Elizabeth/.pip/pip.log

Try:
pip install --index-url=https://pypi.python.org/simple/ xlrd
Most common issue is pip not connecting to the simple index via SSL. Post your debug log to confirm this. Pip is also probably outdated, so to update it try:
sudo pip install --index-url https://pypi.python.org/simple/ --upgrade pip

Related

How to install packages when Pip installation wont work

I am trying to install packages-openpyxl,textwrap,datetime etc. But it is showing error after 'Connecting ...'
I have tried following methods-
pip install package (this worked for some of the packages like pywin32)
unchecking and checking proxy server box
I have tried downloading .tar.gz files and then installing them
using (this worked for xlrd,xlsxwriter)
pip install file.tar.gz
Tried following commands-
pip install --proxy=user:pass#server:port openpyxl
pip install --proxy domain\user:password#proxyaddress:port openpyxl
I have been trying to find solutions to this for a while now but could not find any other solution to install rest of the packages which are openpyxl,Jinja2,textwrap and datetime. Is there any other way to get this done?

How to install Django in virtualenv python 2.7

please tell me some way to install Django in ubuntu in virtualenv without using pip for python 2.7
I am using a proxy connection. I have tried the steps shown in other answers for exporting proxy for pip .
when I try pip install Django==1.6.2 it shows error
Downloading/unpacking Django
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement Django
Cleaning up...
No distributions at all found for Django
Storing debug log for failure in /home/shivam/.pip/pip.log
Also , I am unable to install anything using pip.
If your using pip 1.5.4, you should read this topic : pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/. So, you should upgrade pip in your virtualenv: pip install --upgrade pip (see https://pip.pypa.io/en/stable/installing/#upgrading-pip).

How to install pyinstaller using pip

I am trying to install PyInstaller using pip but i am failing in doing so. I have Python 2.7.
Error:
C:\Python27\Scripts>pip install pyinstaller
Downloading/unpacking pyinstaller
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pyinstaller
No distributions at all found for pyinstaller
Storing complete log in C:\Users\hardik\AppData\Roaming\pip\pip.log
I tried upgrading pip first with pip install -U pip setuptools but got the same error:
C:\Users\hardik>pip install -U pip setuptools
Cannot fetch index base URL pypi.python.org/simple
Could not find any downloads that satisfy the requirement pip in c:\python27\lib \site-packages
No distributions at all found for pip in c:\python27\lib\site-packages
Storing complete log in C:\Users\hardik\AppData\Roaming\pip\pip.log
I was facing the same issue, and this is how I solved it:
pip install https://github.com/pyinstaller/pyinstaller/tarball/develop

How to install facebook-sdk for python in ubuntu?

I have been trying to install facebook-sdk for python to fetch data from few fb pages.
I have tried following commands as i saw in Python Facebook SDK: 'module' object has no attribute 'GraphAPI'
__sudo pip uninstall facebook
sudo pip uninstall facebook-sdk
sudo pip install facebook-sdk__
But i am getting following in my terminal
_User#user:~$ __sudo pip install facebook-sdk__
Downloading/unpacking facebook-sdk
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement facebook-sdk
Cleaning up...
No distributions at all found for facebook-sdk
Storing debug log for failure in /home/user/.pip/pip.log_
What version of pip do you have?
This error I remember:
Cannot fetch index base URL https://pypi.python.org/simple/
As far as I can remember I think i found the issue with some older versions of OpenSSL being incompatible with pip 1.3.1:
Installing pip-1.2.1 is a working workaround, but let me know!

easy_install latest version github

I'm using Python 2.7 on Windows.
My question relates to using and updating the twitter package (http://mike.verdone.ca/twitter/) - currently installed version 1.9.1
When Twitter gives a ratelimited response the twitter package gives an error httplib.IncompletedRead. This problem seems to have been addressed in the version of api.py on Github. But the downloaded egg file I have on my system doesn't have that latest version in.
When I try
easy_install --upgrade twitter
I get response:
Processing twitter-1.9.1-py2.7.egg
twitter 1.9.1 is already the active version in easy-install.pth
So how do I get an egg file onto my system that includes the latest api.py, so that I don't get the IncompleteRead error?
Thanks for any help
You can install directly from GitHub with pip, but you perhaps have to force the upgrade:
pip install -U --force-reinstall git+git://github.com/sixohsix/twitter.git#egg=twitter
This does require that you have git itself installed as well.
Alternatively, you can install from the GitHub supplied archives:
pip install -U --force-reinstall https://github.com/sixohsix/twitter/zipball/master#egg=twitter
or
pip install -U --force-reinstall https://github.com/sixohsix/twitter/tarball/master#egg=twitter

Categories

Resources