I have distributed my Python project using setup.py sdisy, and I can locate my package in my system:
webcluster4u#ingestion-jenkins-vm:~/google-cloud-functions$ python3 -m pip list
Package Version
------------------------ ----------
...
file-ingestion 0.2
Now when I to run the command below I get an error:
webcluster4u#ingestion-jenkins-vm:~/google-cloud-functions$ python3 -m pip install -t /home/webcluster4u/google-cloud-functions/com/mahdi/python/functions/gcs/dependency file-ingestion
Collecting file-ingestion
Could not find a version that satisfies the requirement file-ingestion (from versions: )
No matching distribution found for file-ingestion
I am not sure what I am missing. Can anyone help me?
It is a bit strange that whenever I use the above command or use the file-ingestion in requirement.txt, I get the above message saying it cannot collect the package.
Related
I'm trying to add preprocess-kgptalkie in Python interpreter and I'm receiving these errors
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/home/amel/PycharmProjects/pythonProject1/venv/bin/python'.
ERROR: Could not find a version that satisfies the requirement preprocess-kgptalkie (from versions: none)
ERROR: No matching distribution found for preprocess-kgptalkie
I'm using Python 3.6 and pip 21.2.4
There is no preprocess-kgbtalkie package on PyPI. However, I was able to find a GitHub repo here. Install it with
pip install git+ssh://git#github.com/kgptalkie/preprocess_kgptalkie.git
On https://pypi.org/project/tensorflow-text/2.1.1/, I copied command pip install tensorflow-text==2.1.1 and run it.
However, pip gives error
> pip install tensorflow-text==2.1.1
ERROR: Could not find a version that satisfies the requirement tensorflow-text==2.1.1 (from versions: 2.4.0rc0)
ERROR: No matching distribution found for tensorflow-text==2.1.1
Does "from versions: 2.4.0rc0" mean pip is only aware of 2.4.0rc0?
Since https://pypi.org/project/tensorflow-text/#history lists so many versions, why is my pip only aware of one particular version?
I'm using Python 3.7.9 on Windows.
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 not able to install 'Intertools' in python. Following are the errors
When used Pip install Method in Command Prompt:
C:\Users\avira>pip install intertools
Fatal error in launcher: Unable to create process using '"c:\users\avira\appdata\local\programs\python\python37-32\python.exe" "C:\Users\avira\AppData\Local\Programs\Python\Python37-32\Scripts\pip.exe" install intertools'
When used Pip install Method in Anaconda Prompt:
(base) C:\Users\avira>pip install intertools
Collecting intertools
Could not find a version that satisfies the requirement intertools (from versions: )
No matching distribution found for intertools
Please help me how to install 'Intertools' library in python.
"Intertools" ?
Are you sure you are not trying to use 'itertools' instead ? Which is built-in in Python. Just import it and that's it.
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.