Я пытаюсь запускать и отлаживать скрипты Python с помощью PyCharm, которые используют графики Matplotlib.Однако я не могу ничего сделать, потому что PyCharm не может найти мою существующую установку Matplotlib и не может загрузить и установить свою собственную версию, когда я пытаюсь установить Matplotlib через интерфейс настройки / менеджера пакетов.
Тем не менее, у меня уже установлен Matplotlib на моем компьютере, и когда я запускаю скрипт через терминал, все работает просто отлично.
Так что мой вопрос, как я могу:
- Успешно установите Matplotlib через PyCharm или
- Direct PyCharm для моей существующей установки Matplotlib
Версии системы
- ОС: Ubuntu 14.04
- Python: 3.7.0 (также установлен 3.4)
- Пип: 18.1 из / usr / local / lib /python3.4 / dist-packages / pip (python 3.4)
- Pip3: 18.1 из /home/matt/anaconda3/lib/python3.7/site-packages/pip (python 3.7)
- Matplotlib: 3.0.2
- PyCharm: PyCharm community v 2018.3.1
- Интерпретатор PyCharm: Python 3.7
Ошибка при установке Matplotlib через PyCharm
Collecting matplotlib==3.0.2
Could not fetch URL https://pypi.org/simple/matplotlib/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/matplotlib/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
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
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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/matplotlib/
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/matplotlib/
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/matplotlib/
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/matplotlib/
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/matplotlib/
Could not find a version that satisfies the requirement matplotlib==3.0.2 (from versions: )
No matching distribution found for matplotlib==3.0.2
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.