Error Installing Scikit-learn in ubuntu 14.04 - python

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

Related

Cannot install deepspeech of python

I want to use DeepSpeech of Mozilla on my Linux 22.04 system, following this website:
https://deepspeech.readthedocs.io/en/r0.9/?badge=latest
At the very beginning line, at
pip3 install deepspeech
I got this error:
ERROR: Could not find a version that satisfies the requirement deepspeech (from versions: none)
ERROR: No matching distribution found for deepspeech
I ran into internet and followed all methods such as upgrading pip3, using pip instead of pip3. I could not solve the problem.
This website:
https://github.com/mozilla/DeepSpeech/issues/3693
suggests to use archive. I did not understand which repository should I archive at this step.
It is very nice of you if you can help me
The pip command you mentioned above worked for me:
Try updating your linux packages
sudo apt update
sudo apt upgrade
Then trying again if it does not work trying using python
python -m pip install deepspeech

What does Failed building wheel for Pillow mean?

I don't understand what this error 'Failed building wheel for Pillow' means?
I just wanted to install easyocr, but it gives me an error, I tried to find a solution to the problem on the Internet but could not find it. Help me solve this problem, I will be very grateful
pip install easyocr
Try doing pip install -U pip
This will upgrade the version of pip in your system. Sometimes, the latest version of a python package that you are trying to install is not compatible with the pip version installed in the system.
The above command will update your pip and once that is done, you can try running the command pip install easyocr once again.
Let me know if this helped!!
If this did not help, please let me know whether you are on a windows machine or a linux machine.
If you are on an Ubuntu machine then you probably have to redo the steps that I mentioned using pip3 instead of pip.

install scikit-learn on python

I tried to use the following two commands to install scikit-learn on Mac OS:
pip3 install -u scikit-learn
pip3 install scikit-learn
I did not know "-u" stands for upgrade and used the -u command first. Then when I used the second command, I got the following error message:
Collecting scikit-learn
Using cached scikit-learn-0.18.1.tar.gz
Installing collected packages: scikit-learn
Running setup.py install for scikit-learn … error
What should I do? thanks.
The -u option you are talking about is actually -U which means as specified in manual
Upgrade all specified packages to the newest available version. This process is recursive regardless of whether a dependency is already satisfied.
Now to install scikit-learn first make sure you have all the dependencies already installed in order to install this library which are
Python (>= 2.6 or >= 3.3)
NumPy (>= 1.6.1)
SciPy (>= 0.9)
as mentioned on their site.
Alternatively you might wanna try Anaconda version of python which comes with all these modules/libraries pre-installed.
Thanks all for the helpful answers. I was able to solve the problem and here is how. First I installed Xcode. I should have clarified that I was trying to install it on a mac. Though I still don't know why I need Xcode, it worked. Second I used the sudo statements: sudo pip3 install -u scikit-learn.

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 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!

Categories

Resources