cannot install pandasql in anaconda and having proxy issue - python

I know this is an old topic but I keep having trouble with installing pandasql in anaconda, I hope someone could help...
what I have tried:
open anaconda prompt, type pip install pandasql, then I got the below error:
"WARNING: Retrying (Retry(total=4, connect = None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError... 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pandasql/"
ERROR: Could not find a version that satisfies the requirement Pandasql (from versions: none)
ERROR: No matching distribution found for Pandasql
I saw some postings saying that it may be proxy issue and I just want to check if my IP is blacklisted by https://pypi.org, then I go curl https://pypi.org
I got the below error:
curl: (28) Failed to connect to pypi.org port 443 after 84242 ms: Timed out
could anyone advise that what else I can do? to install pandasql in anaconda?
Thanks.

Try conda install (package name) instead of pip, since you’re using anaconda already
This page gives you the specific command
https://anaconda.org/anaconda/pandasql

Related

How to fix Python PIP update failing

I am trying to install and use python on Windows 11 for purposes of Meraki API calls. I have installed Python version 3.11 and am now trying to run
pip install --upgrade requests
pip install --upgrade meraki
but these command return the following error
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/requests/
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests
WARNING: There was an error checking the latest version of pip.
I don't think the firewall is blocking it but I am not sure what I need to look for in the firewall - does anyone know the addresses that need to be unblocked?
Or is there another reason for this error?
Thanks!
I tried adding a firewall rule but didn't know what I needed to add.
Try to use another pip index-url
For example:
pip install --upgrade requests -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

How to install PIP on python2.7 with python3 already installed, in Windows

I have already installed both Python 3.9.7 and Python 2.7 in my Windows. I need to install some libraries like scipy to run an old project, which is written in Python2.
It's a kinda big project so I prefer not to edit the syntax and make it compatible with Python3.
I have to install pip on my python2 for installing the required libraries. I tried to use the instructions mentioned here.
But I get this error:
c:\users\amerali\appdata\local\temp\tmponnk1_\pip.zip\pip\_vendor\urllib3\util\ssl_.py:164:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/pip/
Which occurs 5-6times, then it gives the following error :
ERROR: Could not find a version that satisfies the requirement pip<21.0 (from versions: none)
ERROR: No matching distribution found for pip<21.0
I tried it with another internet connections as well, but didn't fix it.
Is there any solutions or an alternative way to install pip?

Error while trying to install 'pymongo' libary

I tried to run my code on Linux ad get this error:
ModuleNotFoundError: No module named 'pymongo'
then I install with these commands :
$ pip install pymongo
$ pip install pymongo==2.1.1
$ pip install --upgrade pymongo
and still get an error :
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pymongo/
I've tried to search this error - specific on 'pynomgo' and couldn't find anything.
I'd be happy if anyone can help me here.
thank you in advance.
Please do check your internet connection.
Because the error says read timed out which meant there is a problem in internet connectivity.
If you still can't resolve the problem Please tell which OS you are using.
Because in linux based OS pymongo will be pre-installed.

Pip shows web socket error and I cannot install any packages

I tried installing django but didn't work. Instead it gave me this error...
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/django/
ERROR: Could not find a version that satisfies the requirement django (from versions: none)
ERROR: No matching distribution found for django
I tried to install other packages and modules but none of them could be installed. I reinstalled python and while doing that I lose all my previous packages. I had a project with PyQt5 which I could install successfully two weeks ago but after I reinstalled python my packages, modules, etc. where gone and now pip won't work I don't know why.
I tried changing my network and tried using my phone's hotspot but it didnt solve the problem. I tried giving the version name of the packages but that didn't work either.
My network doesn't have a proxy or is not connected to a vpn. I can download any other stuff but I just cannot download stuff with pip.
Thanks in advance!

pip Install throwing No matching distribution found for

I am on my work PC (corporate proxy) and i am unable to install anything using pip install.
I have tried the following:
pip install QuantLib-Python
pip install --proxy 'webproxy.abc.123.nsroot.net:8080' QuantLib-Python
pip install --proxy "user:pass#webproxy.abc.123.nsroot.net:8080" QuantLib-
Python
no matter the library i always receive this message. I am on Python 3.7.3
Collecting QuantLib-Python
Note: you may need to restart the kernel to use updated packages.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000002BEAFD0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /simple/quantlib-python/
Retrying
No matching distribution found for QuantLib-Python
On my Home PC i ran the command pip install QuantLib-Python with the version of python and it worked perfectly.
please help!

Categories