$pyenv install <Die Version von Python, die Sie verwenden möchten>
$ curl -kL https://bootstrap.pypa.io/get-pip.py | python
macOS 10.14.6 pyenv
Nach langer Zeit konnte ich Python auf dem Mac verwenden. Welches Modul soll ich mit pip einbauen?
Zuerst habe ich danach gesucht.
$ pip search blurblur
Exception:
Traceback (most recent call last):
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 423, in send
timeout=timeout
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 583, in urlopen
conn = self._get_conn(timeout=pool_timeout)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 257, in _get_conn
return conn or self._new_conn()
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 808, in _new_conn
raise SSLError("Can't connect to HTTPS URL because the SSL "
pip._vendor.requests.packages.urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/commands/search.py", line 45, in run
pypi_hits = self.search(query, options)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/commands/search.py", line 62, in search
hits = pypi.search({'name': query, 'summary': query}, 'or')
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/download.py", line 775, in request
headers=headers, stream=True)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 522, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/download.py", line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 596, in send
r = adapter.send(request, **kwargs)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/Users/someone/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 497, in send
raise SSLError(e, request=request)
pip._vendor.requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
Autsch ...
Vorerst werde ich den Lehrer fragen. Es ist gesunder Menschenverstand. https://qiita.com/akashixi/items/14d05ddf0a3d1176956c https://www.unknownengineer.net/entry/2018/06/20/191011 https://www.secat-blog.net/wordpress/python3-cannot-install-numpy-by-pip-fix/ Jeder installiert python3.8.0 und aktualisiert openSSL.
Ich habe es nachgeahmt, 3.8.0 gesetzt und piped, aber es hat keinen SSLError geworfen. Wenn ich es jedoch auf 3.6.1 setze, ist der SSL-Fehler immer noch der gleiche. Ich habe auch openssl aktualisiert, um von der Standardeinstellung zu wechseln.
$brew install openssl
$echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
Trotzdem wird SSLError nicht geheilt.
Installieren Sie Python neu.
$ pyenv install 3.6.1
Installieren Sie Pip ebenfalls neu.
$ curl -kL https://bootstrap.pypa.io/get-pip.py | python
Also, wenn ich versuche, pip zu verwenden ...
$ pip search blur
blur (0.4) - A chance art toolkit.
blur-clip-board-image-cli (0.0.4) - Blur clip board image command line tool for macOS
pyblur (0.2.3) - Image blurring routines
WallaBlur (1.0.1) - blur background on window opening
pillow-stackblur (0.0.2) - The Pillow filter for Stack Blur.
blurit (0.0.12) - This package is aimed to build to blur different portions of a image. Currently it blurs eyes in human photograph.
BlurWal (1.1.1) - Smoothly blurs the wallpaper when windows are opened.
pysaber (0.1.5) - Python package that implements a systems approach to blur estimation and reduction (SABER)
azureblur (0.1) - The triple box blur implementation from Firefox’s moz2d/Azure, with Python bindings.
imgic (0.2.8) - A basic numpy-based image manipulation package. Contains tools for resizing, cropping, blurring, and others.
Products.ImageEditor (3.0.0) - adds a "Image Editor" link near the image widget allowing the user to rotate, flip, blur, compress, change contrast & brightness, sharpen, add drop shadows, crop, resize
an image, save as, and apply sepia.
Ich habs gemacht.