My environment:
- macOS 10.14.6
- Python 2.7.10
- Python 3.6.5
- pip 10.0.1
My situation:
I am trying to use OpenCV. When I write this command
$ pip3 install virtualenv virtualenvwrapper
and then pip say this.
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
You are using pip version 10.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
So I try this
pip install --upgrade pip
and then
-bash: pip: command not found
I also did this
pip3 install --upgrade pip
and then
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
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (10.0.1)
What I tried
1: Uninstall pip
sudo pip uninstall pip
2: Uninstall Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
3: Reinstall Homebrew and the packages
4: Downgrade Python 3.7 to Python 3.6 to install OpenCV.