How to install Django in virtualenv python 2.7 - python

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).

Related

How do you install the xlrd package on a mac?

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

How to fix "curl: (6) Could not resolve host: bootstrap.pypa.io"

I am getting
could not resolve host :bootstrap.pypa.io
error when trying to install virtualenv
I am trying to come up with a Django project, I have python 3 in my Mac and I need to use virtualenv for creating a virtual environment, I used pip install virtualenv to install virtual env but I got an error
Could not find a version that satisfies the requirement virtualenv (from versions: ) No matching distribution found for virtualenv
I found a solution for this in Stack Overflow here which was to update pip using
curl https://bootstrap.pypa.io/get-pip.py | sudo python
but I am getting
could not resolve host :bootstrap.pypa.io
error can some one suggest me what needs to be done to successfully install virtualenv.

Error Installing Scikit-learn in ubuntu 14.04

Getting the following error when trying to install scikit-learn using pip
Error:
Downloading/unpacking scikit-learn
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement scikit-learn
Cleaning up...
No distributions at all found for scikit-learn
Storing debug log for failure in /home/dmacs/.pip/pip.log
I've even tried with proxy setting as :
sudo pip --proxy http://user:pass#localhost:port install scikit-learn
Can anyone help me out with this problem?
Thanks in advance
Based on the details:
a. The server where you are installing has a networking issue which doesnt seem to solve by the proxy command. Basically it is unable to download the list from pip.
b. If networking is running kindly try this:
sudo pip install -U pip
sudo pip install -U scikit-learn

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