No distributions at all found for setup.py - python

I'm having an issue with pip install. I am trying to download SQLAlchemy and download the gz file from here. However, when I type pip install setup.py in the Command Prompt, I get:
Downloading/unpacking setup.py
Could not find any downloads that satisfy the requirement setup.py
Cleaning up..
No distributions at all found for setup.py
I've been facing a similar problem with pip when trying to download other libraries and this started occurring a day after I downloaded Python 3.4, when I was running Python 2.7 previously. I had a look at this and tried using pip install --pre library_name. However, this doesn't seem to working either and I get a similar message to the one above.
Thank You

You are using wrong command. Please do
pip install SQLAlchemy
Or:
python setup.py install # If you want to manually extract the package for installation for some reason, but this is not required with pip

Related

Trouble installing packages in Python - ... is in an unsupported or invalid wheel

Hi I am trying to install win10toast and I get this message:
I had this error when I tried to download pywin32 previously, but why is this error popping up whenever I try to install any other package? I used to be able to install packages fine before with the same command
pywin32 is listed as a requirement for the package win10toast (link). So, when you are installing win10toast, pip also tries to install pywin32 which gives you an error.
From the looks of it, you are using a python 3.6 and a 32-bit system, both of which are supported by the latest release (pywin32 302). To resolve the pywin32 error, you could try the following.
Option 1: Considering there are multiple installs and python3 is mapped to python 3.6 installation. (You can check that using python --version)
Install using python -m pip install pypiwin32
If you had a prior successful install on pypiwin32, you could actually try to use: python Scripts/pywin32_postinstall.py -install
Option 2: Download the binary files and install - https://github.com/mhammond/pywin32/releases/tag/b302
Download the appropriate exe and install
Option 3: Download the source files and build:
Download the zip file from: https://github.com/mhammond/pywin32/releases/tag/b302
Unzip the file
Use the command python setup.py install
Update:
I was looking around the pywin32 github repo and found that the same issue is encountered by others too. While an official update is not rolled out, you can try the solution there:
you need to download the wheel found here
Install the whl manually using the command: python -m pip install C:/some-dir/pywin32-302.1-cp36-cp36m-win32.whl

Install a package manually by downloading it and unfolding into site-packages

I want to work with the package sparsesvd and ran the installation as described on the website:
pip install sparsesvd
However, this results in:
ERROR: Command errored out with exit status 1
Now I downloaded the file sparsesvd-0.2.2.tar.gz from the website, assuming that I should be able to store it in the right location myself. Using an naive approach and just copying the entire folder to:
C:\Users\USER_NAME\AppData\Local\Continuum\anaconda3\Lib\site-packages
Does not let me import sparsesvd in Python. What can I do to install this package manually?
Try with
python3 -m pip install sparsesvd
Without any change of environment (so in Python 3.7), running the command:
pip install sparsesvd
worked for me, after I downloaded the Visual Studios build tools.
You can try with
pip3 install sparsesvd

unable to install python pdfinterp with pip cammand

when i am installing some module like pdfinterp with pip command gives below error please share any solution.
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
From what I understand of your question, you are trying to install the pdfinterp module, which is a part of the pdfminer package.
So, to properly install pdfinterp, you would need to run:
sudo -H pip install pdfminer
However, pdfminer is only for Python2.7! You don't specify in your question, but if you are using Python3.6, you would need to run:
sudo -H pip3 install pdfminer3k
Which downloads pdfminer3k, a "Python 3 port of pdfminer" which should mean your pdfinterp module should be downloaded with.
Hope it helps!
EDIT
Before we begin, try upgrading your pip package by running:
pip install --upgrade pip
(Or python -m pip install --upgrade pip on Windows)
This will ensure your pip packages are up-to-date.
Then, according to errors reported on the pip GitHub repo concerning pdfminer, you should be able to run the install explained in the original answer above. The reason this error is occurring for you is because at one time PEP 440 was having issues with the declaration of "prerelease detection logic":
I'm guessing pip was confused by the old N[.N]+ spelling in the PEP,
that got clarified in recent editions to N(.N)*. SOURCE
This should fix the issue, if you still have problems comment below with the error it returns and we can go from there!
Here is some additional information about the issue that was raised in error #1555 of PyPa pip's GitHub Repo.
As a side note, my machine is running the most recent version of pip and is fully functioning with pdfminer and pdfminer3k!

Installing ggplot for python failed with error code 1

I am trying to install ggplot for Python using
pip install ggplot
but I get an error message saying
I am using Python2.7 on Windows8. I looked at the suggestions and among other things tried the suggestion here
pip install wheel to install support for wheel files.
pip install ggplot-0.11.5-py2.py3-none-any.whl to install the wheel. I downloaded the whl file from here.
Upon doing this I got further messages saying:
Failed building wheel for scipy
Failed cleaning build for scipy
In addition I still get the original error message.
Please provide suggestions.
After trying all possible things suggested in various forums this is what worked for me:
Download numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl files from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy to C:\Python27\Scripts directory.
Run the following commands from the DOS command window in windows
pip install numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl
pip install scipy-0.18.1-cp27-cp27m-win_amd64.whl
They were both successfully installed.
Finally
pip install ggplot

Pip install not installing python module

I recently reformatted my computer, and I've been trying to reinstall Python and Pip and the modules I use for programming. However, when I try to install modules with pip in powershell, for example "pip install BeautifulSoup", it displays
PS C:\Users\Norman\Copy\Coding\LinguisticsProject> pip install BeautifulSoup
Downloading/unpacking pip
Downloading/unpacking setuptools
Downloading/unpacking install
Could not find any downloads that satisfy the requirement install
Some externally hosted files were ignored (use --allow-external install to allow).
Cleaning up...
No distributions at all found for install
Storing debug log for failure in C:\Users\Norman\pip\pip.log
The log file can be found at http://pastebin.com/Th7uuKA4. The module is not installing correctly, because the module is not found when I try to import it. I have my user PATH variable set to the following: http://pastebin.com/htquhuVY. Thanks!
I believe the package you are looking for is BeautifulSoup4. I failed this too. I feel your pain.

Categories