I am trying to collect all the wheel files for libffi-dev. Trying the command mentioned below:
pip wheel --wheel-dir=setup libffi-dev
is giving
Collecting libffi-dev
Could not find a version that satisfies the requirement libffi-dev (from versions: )
No matching distribution found for libffi-dev
Thanks in advance :)
libffi-dev is the name of the Ubuntu package. cffi is the one from PyPI. You need to install both:
sudo apt-get install libffi-dev
pip install cffi
If you are trying to install wordcloud and facing this issue.
From https://pypi.org/simple/wordcloud/ download the corresponding .whl file for the Python version and OS you are using. (I have downloaded wordcloud-1.5.0-cp37-cp37m-win_amd64.whl meant for 64 bit windows).
Place the file in C:\Users\<User>
From command prompt run
pip install --verbose --trusted-host files.pythonhosted.org wordcloud-1.5.0-cp37-cp37m-win_amd64.whl
This worked for me. Found this solution after a lot of research.
C:\Users\**<user>**>pip install --verbose --trusted-host files.pythonhosted.org wordcloud-1.5.0-cp37-cp37m-win_amd64.whl
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Created temporary directory: C:\Users\<user>\AppData\Local\Temp\pip-ephem-wheel-cache-hqkva4rs
Created temporary directory: C:\Users\<user>\AppData\Local\Temp\pip-req-tracker-0cimhb2c
Created requirements tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
Created temporary directory: C:\Users\<user>\AppData\Local\Temp\pip-install-y5b3ck8i
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Processing c:\users\<user>\wordcloud-1.5.0-cp37-cp37m-win_amd64.whl
Added wordcloud==1.5.0 from file:///C:/Users/<user>/wordcloud-1.5.0-cp37-cp37m-win_amd64.whl to build tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
Removed wordcloud==1.5.0 from file:///C:/Users/<user>/wordcloud-1.5.0-cp37-cp37m-win_amd64.whl from build tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
Requirement already satisfied: pillow in c:\users\<user>\anaconda3\lib\site-packages (from wordcloud==1.5.0) (5.4.1)
Requirement already satisfied: numpy>=1.6.1 in c:\users\<user>\anaconda3\lib\site-packages (from wordcloud==1.5.0) (1.15.1)
Installing collected packages: wordcloud
Successfully installed wordcloud-1.5.0
Cleaning up...
Removed build tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
Related
I'm trying to update Duplicity with pip install -U duplicity, but it fails with the following output:
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: duplicity in /usr/lib/python3/dist-packages (0.8.20)
Collecting duplicity
Using cached duplicity-0.8.21.post7.tar.gz (1.4 MB)
Preparing metadata (setup.py) ... done
Discarding https://files.pythonhosted.org/packages/23/01/c8fabb7811feb13d762d976155f3dba912f0dab93f033c655f3180148574/duplicity-0.8.21.post7.tar.gz#sha256=3c526376e61a372c9a5aee8b3a52d4b498d297711d7fb232604ace87c378ba41
(from https://pypi.org/simple/duplicity/) (requires-python:>2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4):
Requested duplicity from https://files.pythonhosted.org/packages/23/01/c8fabb7811feb13d762d976155f3dba912f0dab93f033c655f3180148574/duplicity-0.8.21.post7.tar.gz#sha256=3c526376e61a372c9a5aee8b3a52d4b498d297711d7fb232604ace87c378ba41
has inconsistent version: filename has '0.8.21.post7', but metadata has '0.8.21.post0'
I see it uses some cached file, but I failed to find it to try to clear it. Also I see it mismatches some metadata in downloaded file, but it was released a while ago (last Nov) so unlikely anything this critical would be overseen. Still, I'm out of clue how to fix it on my end.
Googling with any parts of this message also didn't bring anything.
I see it was released quite a while ago (last Nov), so I believe it should be something on my side.
If anything, I'm under Ubuntu 21.10 and my Python is 3.9.7.
Any input is highly appreciated.
I just ran into the same problem. Resolved it using these steps:
installed the "basic requirements" from https://gitlab.com/duplicity/duplicity/-/blob/rel.0.8.21/requirements.txt via pip: python3 -m pip --no-cache-dir install fasteners future python-gettext "setuptools>=44.1.1" "setuptools-scm>=5.0.2"
tried installing duplicity: python3 -m pip --no-cache-dir install "duplicity==0.8.21.post7"
resolved missing system packages as they popped up, then retried
Worked for me after a few rounds :)
So I am trying to install pylint using pip, as my work machine is offline I have downloaded pylint using pip and transferred this using a CD. As part of pylint download it also brought down asteroid, colorama, isort, lazy_object_proxy, McCabe, six, typed ast and wrapt.
However when running the install for pylint using the following command inside the directory with all the above files in:
python -m pip install --no-index --find-links . -r requirements.txt
This starts to work with it collecting pylint, isort and a couple of others, however after collecting asteroid it goes to collect lazy object proxy (which is in the directory) and gives the following error:
Could not find a version that satisfies the requirement lazy-object-proxy (from asteroid<3,>=2.2.0->pylint->-r requirements.txt (line 1)) (from versions: ) No matching distribution found for lazy-object-proxy (from asteroid<3,>=2.2.0->pylint->-r requirements.txt (line 1))
The version of lazy object proxy downloaded is 1.4.1
Im fairly new to this so maybe there is something in this error that highlights why it doesn't see or like the version that is downloaded and in the directory, any help would be much appreciated.
OS is windows 7, running python version 3.6.0
NOTE: even trying to just install lazy object proxy on its own fails saying it doesn't exist, its like its not there although it is in the folder.
I am trying to install python packages from the local file system with pip as discussed in this question.
I have used pip2pi as suggested in the accepted answer in the above question.
dmanna#ubuntu:~$ mkdir -p pyt/pkg
dmanna#ubuntu:~$ pip2tgz pyt/pkg/ patroni[zookeeper]
The downloaded packages
dmanna#ubuntu:~$ ls /home/dmanna/pyt/pkg/
cdiff-1.0.tar.gz
certifi-2018.4.16-py2.py3-none-any.whl
chardet-3.0.4-py2.py3-none-any.whl
click-6.7-py2.py3-none-any.whl
idna-2.7-py2.py3-none-any.whl
kazoo-2.5.0-py2.py3-none-any.whl
patroni-1.4.4.tar.gz
prettytable-0.7.2.tar.bz2
psutil-5.4.6.tar.gz
psycopg2-2.7.4.tar.gz
python_dateutil-2.7.3-py2.py3-none-any.whl
pytz-2018.4-py2.py3-none-any.whl
PyYAML-3.12.tar.gz
requests-2.19.1-py2.py3-none-any.whl
six-1.11.0-py2.py3-none-any.whl
tzlocal-1.5.1.tar.gz
urllib3-1.23-py2.py3-none-any.whl
Then when I am trying to install the required package from the above local directory. It is giving me the below error
dmanna#ubuntu:~$ sudo pip install --no-index --find-links=pyt/pkg/patroni-1.4.4.tar.gz patroni[zookeeper]
Ignoring indexes: https://pypi.python.org/simple/
Downloading/unpacking patroni[zookeeper]
Running setup.py (path:/tmp/pip_build_root/patroni/setup.py) egg_info for package patroni
Installing extra requirements: 'zookeeper'
Downloading/unpacking urllib3>=1.19.1,!=1.21 (from patroni[zookeeper])
Could not find any downloads that satisfy the requirement urllib3>=1.19.1,!=1.21 (from patroni[zookeeper])
Cleaning up...
No distributions at all found for urllib3>=1.19.1,!=1.21 (from patroni[zookeeper])
Storing debug log for failure in /home/dmanna/.pip/pip.log
Can someone let me know what I am doing wrong?
Python - 2.7.6
PIP - 1.5.4
Ubuntu 14.04
--find-links=pyt/pkg
Find links in the directory, not in the patroni-1.4.4.tar.gz archive.
Doing this on a Linux Mint 17.1.
When I try:
pip install hdf5
I get the error
"Could not find a version that satisfies the requirement hdf5 (from versions: )
No matching distribution found for hdf5"
I'm trying in the long run to install netcdf4 but can't do that until I get hdf5 installed. Supposedly from when I was trying to do this last week, with netcdf4, I should be using the pip install netcdf4, err hdf5...at least maybe in the case of hdf5.
If I try pip install h5py I get that the message saying:
Requirement already satisfied (use --upgrade to upgrade): h5py in ./anaconda3/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in ./anaconda3/lib/python3.5/site-packages (from h5py)
Requirement already satisfied (use --upgrade to upgrade): six in ./anaconda3/lib/python3.5/site-packages (from h5py)
Yet if I go ahead and try pip install netcdf4 it comes up and says:
Collecting netcdf4
Using cached netCDF4-1.2.3.1.tar.gz
Complete output from command python setup.py egg_info:
Package hdf5 was not found in the pkg-config search path.
Perhaps you should add the directory containinghdf5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hdf5' found
cython version 0.23.4 found ...
reading from setup.cfg...
HDF5_DIR environment variable not set, checking some standard locations ..
checking /home/meant2b ...
checking /usr/local ...
checking /sw ...
checking /opt ...
checking /opt/local ...
checking /usr ...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-pq3yt4ek/netcdf4/setup.py", line 286, in <module>
raise ValueError('did not find HDF5 headers')
ValueError: did not find HDF5 headers
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pq3yt4ek/netcdf4/`
When I search the files I don't find a hdf5.pc file.
Is there a difference between h5py and hdf5? Do I have to compile and install hdf5 from the individual files or can I pip install.
What do I have to do to be able to install both hdf5 and netcdf4?
You need to install the HDF5 libraries for your Linux distribution. In Ubuntu is:
sudo apt-get install libhdf5-serial-dev netcdf-bin libnetcdf-dev
See this link.
I had the same issue in Debian 8. To fix it, as root, I installed the libraries, then linked the serial headers to a include dir inside the hdf5 libraries, exported the HDF_DIR path and installed netCDF4:
# apt-get install -y libhdf5-dev libnetcdf-dev
# ln -s /usr/include/hdf5/serial /usr/include/hdf5/include
# export HDF5_DIR=/usr/include/hdf5
# pip install netCDF4
I had the same error under macOS Catalina. Had to install the hdf5 and netcdf4 packages from Homebrew:
brew install hdf5 netcdf4
Afterwards, pip3 install netcdf4 worked fine.
Here is my setup.py:
setup(
...
install_requires=['GEDThriftStubs'],
dependency_links=['git+ssh://user#git.server.com/ged-thrift-stubs.git#egg=GEDThriftStubs'],
...)
Then I create package:
python setup.py sdist
Then I try to install it:
pip install file://path/package-0.0.1.tar.gz
And get this in terminal:
Downloading/unpacking GEDThriftStubs (from package==0.0.1)
Could not find any downloads that satisfy the requirement GEDThriftStubs (from package==0.0.1)
No distributions at all found for GEDThriftStubs (from package==0.0.1)
And in pip.log messages like this:
Skipping link git+ssh://user#git.server.com/ged-thrift-stubs.git#egg=GEDThriftStubs; wrong project name (not gedthriftstubs)
And I don't have anywhere in my project that exact name "gedthriftstubs", if it matters.
But this works fine:
pip install git+ssh://user#git.server.com/ged-thrift-stubs.git#egg=GEDThriftStubs
Try:
$ pip install --process-dependency-links file://path/package-0.0.1.tar.gz
Note that this tag is removed from pip in pip 1.6. See this article on pip.pypa.io for more information.
In pip 1.5 processing dependency links was deprecated and it was removed completely in pip 1.6.
There's also a lengthy discussion ( issue #1519 ) regarding pip & dependency links
If that doesn't work, you may also need to add a version suffix on your link, like this:
git+ssh://user#git.server.com/ged-thrift-stubs.git#egg=GEDThriftStubs-0.0.1
where 0.0.1 is the version specified in the setup.py of ged-thrift-stubs