Unable to install dns with pip after upgrading pip - python

Log speaks for itself. I ran pip and it said I needed to upgrade it, so I did. Now I still can't install dns.
~/electrum/python electrum
Error: No module named 'dns'. Try 'sudo pip install <module-name>'
~/electrum/pip install dns
Collecting dns
Could not find a version that satisfies the requirement dns (from versions: )
No matching distribution found for dns
~/electrum/git log
commit c8e67e2bd07efe042703bc1368d499c5e555f854 (HEAD -> master, origin/master, origin/HEAD)
Author: ThomasV <thomasv#electrum.org>

It seems that you need "dnspython" package, which is imported by "dns" name that's why you getting No module named 'dns' message :) Try this
pip install dnspython

Related

unable a install pyspellcheck module on Linux(Raspbian)

so I am working on Linux(Raspbian) and I am unable to install the pyspellcheck module.
so previously I managed to install it by just
pip install pyspellcheck
but recently I had to factory reset my machine and I am not able to install pyspellcheck anymore.
I get the following error:
ERROR: Could not find a version that satisfies the requirement pyspellcheck (from versions: none)
ERROR: No matching distribution found for pyspellcheck
so I would just like to know how can I install it on my machine
NOTE:I am working on a Linux machine
There is no such a package at PyPI: https://pypi.org/project/pyspellcheck/ — error 404. What are you trying to install? Do you want pyspellchecker?
pip install pyspellchecker

Unable to Install Flask-SQLAlchemy

Tried running the following command on the directory where I activated my virtual environment :
pip install Flask-SQLAlchemy
The error message received is :
"ERROR: Could not find a version that satisfies the requirement Flask-SQLAlchemy (from versions: none)
ERROR: No matching distribution found for Flask-SQLAlchemy"
Does anyone face similar problem?
I have gotten this error. I think I resolved it by upgrading pip. Try:
pip install pip==21.0.1

PyPiServer debugging "could not find a version that satisfies the requirement"

I'm creating a private package repository using PyPiServer. I'm serving this on one VPS instance and trying to pip install from another.
Traceback from pip:
root#managersvr:~# pip install --index-url http://<IP>:8080/simple/ global_toolkit --trusted-host <IP>
Could not find a version that satisfies the requirement global_toolkit (from versions: )
No matching distribution found for global_toolkit
root#managersvr:~#
Server logs from PyPi:
[02/May/2020 23:57:10] "GET /simple/global-toolkit/ HTTP/1.1" 200 313
I'm struggling to debug. Steps taken so far:
- I have run pip install --upgrade pip
- I have navigated to the PyPi IP address in browser, which correctly displays:
Welcome to pypiserver!
This is a PyPI compatible package index serving 1 packages.
To use this server with pip, run the following command:
pip install --index-url http://<IP>:8080/simple/ PACKAGE [PACKAGE2...]
To use this server with easy_install, run the following command:
easy_install --index-url http://<IP>:8080/simple/ PACKAGE [PACKAGE2...]
The complete list of all packages can be found here or via the simple index.
This instance is running version 1.3.2 of the pypiserver software.
Navigating to the "here" link for a complete list of all packages yields:
Index of packages
global_toolkit.tar.gz
And navigating to the simple index yields:
Simple Index
global-toolkit
I also tried using global-toolkit instead of global_toolkit.
I am looking for steps to identify the layer at which there is an error, and debug it. Thanks.
UPDATE
I found the pip search command. The output is, strange:
(venv) root#managersvr:~# pip search --index http://<IP>:8080 global_toolkit
global_toolkit () -
I've resolved the issue. In hindsight I should have foreseen the problem. I failed to include my ext_modules value in the top level setup.py (so the cython modules weren't compiled). A good tip for debugging: use the -v flag!

SSL error while pip3 install

I am new to coding. While i try to install python-forecastio using pip3 for python3,it gives me below error.
$ sudo pip3 install --trusted-host pypi.python.org python-forecastio
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting python-forecastio
Could not fetch URL https://pypi.python.org/simple/python-forecastio/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement python-forecastio (from versions: )
No matching distribution found for python-forecastio
What is wrong is, as you may have guessed, the SSL module is not available.
So the simple way to fix the problem is to reinstall python. But the alternative is to run this simple line of code: import ssl. If you get an error you will know your python 3 installation is corrupt so you need to reinstall python, or if you don't get an error try using easy_install-3.x (what ever the module or link you want)(Use the specific python you have installed version in place of "x"). Hope I helped!
-Zeus

Error when using pip install: "Could not find a version that satisfies the requirement <package-name>"

I'm trying to install django-trumbowyg https://github.com/sandino/django-trumbowyg to my app
When I did pip install django-trumbowyg, it returned this error:
Could not find a version that satisfies the requirement django-trumbowyg (from versions: )
No matching distribution found for django-trumbowyg
Does anyone know what this means? And how I can fix it?
As https://pypi.python.org/pypi/django-trumbowyg#downloads shows, there's only a binary package for Python2 at PyPI.
So, you have to install the package directly from the official sources as pointed out by Rishav in the meantime.
Then ask the developer to upload a source package to PyPI and/or build the wheel as universal.
You may also get this error if your company firewall doesnt allow any package from external source. you might need to add a proxy in that case.
for example: pip install django-trumbowyg --proxy=proxy.companydomain.com:

Categories