0

I have this problem when i install numpy on Raspberry Pi ( Python 3.6.6 without anaconda):

pi@raspberrypi:~/Desktop$ sudo pip3 install numpy
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting numpy
  Could not fetch URL https://pypi.python.org/simple/numpy/: 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 numpy (from versions: )
No matching distribution found for numpy

What went wrong and how can I fix it?

MB-F
  • 22,770
  • 4
  • 61
  • 116
Amélie
  • 1
  • 1
  • 3
  • 1
    maybe you need to first install OpenSSL? ```sudo apt-get install openssl ``` – anki Mar 11 '19 at 12:40
  • pi@raspberrypi:~/Desktop$ sudo apt-get install openssl Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: openssl 1 upgraded, 0 newly installed, 0 to remove and 373 not upgraded. Need to get 0 B/712 kB of archives. After this operation, 72.7 kB of additional disk space will be used. – Amélie Mar 11 '19 at 14:32
  • *** Error in `/usr/bin/python3': free(): invalid pointer: 0x003e2bd0 *** Aborted E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1) E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10 – Amélie Mar 11 '19 at 14:32
  • 1
    hm, what distribution have you installed? It is hard to diagnoze anything with so little information, we just know now, that numpy cannot be installed via SSL and that openSSL cannot be installed either... – anki Mar 11 '19 at 14:52
  • what distribution exactly? – Amélie Mar 12 '19 at 08:25
  • I am sorry, I meant the OS, like Ubuntu... Which version, how, is WiFi properly configured, ... :-) – anki Mar 12 '19 at 08:28
  • Thank you for your answer, I work on Raspberry Pi 3 B+ (debian), and an ethernet network – Amélie Mar 12 '19 at 08:37
  • Try to follow these instructions: https://stackoverflow.com/questions/41328451/ssl-module-in-python-is-not-available-when-installing-package-with-pip3 – anki Mar 12 '19 at 09:33

1 Answers1

0

hmm maybe try to run the command sudo apt install python3-openssl then run the command you were trying before and see if you still have the same issue

If there is still an error then try to install all dependencies for python with sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Hope this works :)