pip : AttributeError: module ‘lib’ has no attribute ‘Cryptography_HAS_SSL_ST’

So everytime I want to use pip command on Ubuntu 16.04 I get the following error:

 ~ pip3 --version               Traceback (most recent call last):   File "/usr/local/bin/pip3", line 6, in <module>     from pip._internal import main   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/__init__.py", line 40, in <module>     from pip._internal.cli.autocompletion import autocomplete   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>     from pip._internal.cli.main_parser import create_main_parser   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/main_parser.py", line 12, in <module>     from pip._internal.commands import (   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/__init__.py", line 6, in <module>     from pip._internal.commands.completion import CompletionCommand   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/completion.py", line 6, in <module>     from pip._internal.cli.base_command import Command   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/base_command.py", line 20, in <module>     from pip._internal.download import PipSession   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/download.py", line 15, in <module>     from pip._vendor import requests, six, urllib3   File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/__init__.py", line 97, in <module>     from pip._vendor.urllib3.contrib import pyopenssl   File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>     import OpenSSL.SSL   File "/usr/local/lib/python3.5/dist-packages/OpenSSL/__init__.py", line 8, in <module>     from OpenSSL import crypto, SSL   File "/usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py", line 194, in <module>     if _lib.Cryptography_HAS_SSL_ST: AttributeError: module 'lib' has no attribute 'Cryptography_HAS_SSL_ST' 

I tried to reinstall pyOpenSSL but it requires pip to install it with the command:

pip install pyOpenSSL 

which reproduces the same error message. How can I solve this problem, please?

Почему командная строка Visual Studio 2017 не может найти .h и .lib файлы, и как это исправить?

Комндная строка: x86 Native Tools Command Prompt for VS 2017.

main.cpp:

#include <iostream>  int main() {return 0;} 

Нужно скомпилировать main.cpp через командную строку, хоть iostream в этом примере и не требуется, но почему-то возникает ошибка:

C:\Program Files (x86)\Microsoft Visual Studio17\Community\VC\Tools\MSVC.16.27023\include\crtdefs.h(10): fatal error C1083: Не удается открыть файл включение: corecrt.h: No such file or directory

Ясно что нет там этого файла, но он ведь явно должен там быть.

Если уберу #include <iostream>, то возникает другая ошибка:

LINK : fatal error LNK1104: не удается открыть файл “libucrt.lib”

Magento 2 override /lib html file

I am trying to override an html file in the lib folder, but I cant get it to work. Here is what I have so far:

Path to file I want to override: /lib/web/mage/gallery/gallery.html

Path to file I want to override with: /app/design/frontend/{Module}/{Theme}/web/mage/gallery/gallery.html

I have flushed the cache, but it still only loads the original file.

Any help with this would be appreciated.

Update: If I delete the lib files, it will use the files I want to use, but I want to override the lib files, not have to delete them.