Ask Your Question

Cannot use pip because pip is configured with locations that require TLS/SSL

asked 2016-11-08 13:08:48 -0600

edenharder gravatar image

updated 2016-11-11 01:58:57 -0600

I installed pip by sage -i pip, but when I use pip to install some python packages, it always gives the following error message:

sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody can write to it. Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting octave_kernel Could not fetch URL 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 octave_kernel (from versions: ) No matching distribution found for octave_kernel

Then I followed this post which says ./sage -i pyopenssl, but this step fails for me also.

edit retag flag offensive close merge delete


Could you please give us some informations so that someone can try to understand where your problem comes from:

  • which version of Sage did you use ?
  • which OS ?
  • did you install Sage from the binaries, and which ones ?
  • did you compile Sage yourself ?
  • ... ?
tmonteil gravatar imagetmonteil ( 2016-11-11 04:21:26 -0600 )edit

I have the same issue and I have the following, 8, but was available on 7.6 also, macOS, ( but I used brew for installing it.

ebraminio gravatar imageebraminio ( 2017-08-25 11:44:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-11-11 13:11:19 -0600

tmonteil gravatar image

You should not install pip in Sage since pip is a standard package already. To install a pip package within Sage, for example octave_kernel, you just have to do:

sage -pip install octave_kernel
edit flag offensive delete link more


This solution doesn't work for me. I still get the SSL problem mentioned in the OP. Do you have to uninstall pip in sage?

Ackbach gravatar imageAckbach ( 2017-01-27 09:14:41 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-11-08 13:08:48 -0600

Seen: 6,212 times

Last updated: Nov 11 '16