Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install packages with either pip or conda #10576

Closed
udayr23 opened this issue Feb 2, 2019 · 8 comments
Closed

Cannot install packages with either pip or conda #10576

udayr23 opened this issue Feb 2, 2019 · 8 comments

Comments

@udayr23
Copy link

udayr23 commented Feb 2, 2019

Here is what is happening when I try using pip to install something:

pip install pymsgbox
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pymsgbox
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pymsgbox/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pymsgbox/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pymsgbox/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pymsgbox/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pymsgbox/
Could not fetch URL https://pypi.org/simple/pymsgbox/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pymsgbox/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not find a version that satisfies the requirement pymsgbox (from versions: )
No matching distribution found for pymsgbox
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

here is what happened when I try the same thing with Conda:

conda install pymsgbox
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/r/noarch/repodata.json.bz2
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/r/noarch/repodata.json.bz2 (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))'))

Here is my system information:
Windows 10, 64bit
Dell Inspiron 13 7000
Python 3.7.1
conda 4.5.12

Any idea what may be causing this? I just need a way to install files. I am a beginner to this stuff so please explain things as clearly as possible.

@msarahan
Copy link
Contributor

msarahan commented Feb 2, 2019

duplicate of conda/conda#8046 - you may find a workaround there. conda 4.6.2 included a fix that may address the root cause of the issue, but it probably doesn't fix already-broken environments.

If those suggestions are too much for you, I recommend uninstalling anaconda, then reinstalling it, followed by immediately updating conda to 4.6.2 before doing anything else. From there, hopefully you are OK.

@ccoollavie
Copy link

Hi,
Problem solved here ?
conda/conda#8273
Copy these files from the ./Library/bin to ./DLL/ :
libcrypto-1_1-x64.*
libssl-1_1-x64.*

@yibo-liang
Copy link

Hi,
Problem solved here ?
conda/conda#8273
Copy these files from the ./Library/bin to ./DLL/ :
libcrypto-1_1-x64.*
libssl-1_1-x64.*

Finally something that worked for me. Best regards.

@v3nd3774
Copy link

v3nd3774 commented Jun 5, 2019

Just had this issue and solved with adding following line in ~/.zshrc:

export PATH=$CONDA_HOME/Library/bin:$PATH

Just have to ensure $CONDA_HOME points to the parent folder of Library.

@EandrewJones
Copy link

Hi,
Problem solved here ?
conda/conda#8273
Copy these files from the ./Library/bin to ./DLL/ :
libcrypto-1_1-x64.*
libssl-1_1-x64.*

Another +1 on this fix for Windows 10.

@rishisinha
Copy link

Hi,
Problem solved here ?
conda/conda#8273
Copy these files from the ./Library/bin to ./DLL/ :
libcrypto-1_1-x64.*
libssl-1_1-x64.*

Thanks this worked :)

@weiwei2
Copy link

weiwei2 commented Aug 25, 2019

this also works for me on windows 10. i was using anaconda indirectly from vs code

@mingwandroid
Copy link

mingwandroid commented Aug 25, 2019 via email

@ContinuumIO ContinuumIO locked as resolved and limited conversation to collaborators Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants