$pyenv install <La version de python que vous souhaitez utiliser>
$ curl -kL https://bootstrap.pypa.io/get-pip.py | python
macOS 10.14.6 pyenv
Après un long moment, j'ai pu utiliser python sur mac. Quel module dois-je mettre avec pip?
Tout d'abord, je l'ai cherché.
$ 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.
Aie ...
Pour le moment, je vais demander au professeur. C'est du bon sens. 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/ Tout le monde installe python3.8.0 et met à jour openSSL.
Je l'ai imité, mis 3.8.0 et pip, mais il n'a pas jeté SSLError. Cependant, lorsque je le règle sur 3.6.1, l'erreur SSL est toujours la même. J'ai également mis à jour openssl pour passer de la valeur par défaut.
$brew install openssl
$echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
Pourtant, SSLError n'est pas guéri.
Réinstallez python.
$ pyenv install 3.6.1
Réinstallez également pip.
$ curl -kL https://bootstrap.pypa.io/get-pip.py | python
Alors, quand j'essaye d'utiliser pip ...
$ 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.
Je l'ai fait.
Recommended Posts