Install Python certificates! (A common issue on macOS.)
Open these files:
Install Certificates.command
Update Shell Profile.command
Run these two scripts and you wont have this issue any more.
codehexaui-iMac:Python 3.7 codehexa$ pwd
/Applications/Python 3.7
codehexaui-iMac:Python 3.7 codehexa$ ls -tlr
total 696
-rwxr-xr-x 1 root wheel 2532 Mar 26 05:55 Update Shell Profile.command
-rw-r--r-- 1 root wheel 3875 Mar 26 05:55 ReadMe.rtf
-rw-r--r-- 1 root wheel 13327 Mar 26 05:55 License.rtf
-rwxr-xr-x 1 root wheel 1418 Mar 26 05:55 Install Certificates.command
-rw-r--r--@ 1 root wheel 0 Mar 26 05:55 Icon?
lrwxr-xr-x 1 root wheel 98 Jul 2 04:39 Python Documentation.html -> /Library/Frameworks/Python.framework/Versions/3.7/Resources/English.lproj/Documentation/index.html
drwxr-xr-x 3 root wheel 96 Jul 2 04:39 Python Launcher.app
drwxr-xr-x 3 root wheel 96 Jul 2 04:39 IDLE.app
codehexaui-iMac:Python 3.7 codehexa$ ./Install\ Certificates.command
-- pip install --upgrade certifi
Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2019.6.16)
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
-- removing any existing file or link
-- creating symlink to certifi certificate bundle
-- setting permissions
-- update complete
codehexaui-iMac:Python 3.7 codehexa$ ./Update\ Shell\ Profile.command
This script will update your shell profile when the 'bin' directory
of python is not early enough of the PATH of your shell.
These changes will be effective only in shell windows that you open
after running this script.
All right, you're a python lover already
댓글 없음:
댓글 쓰기