mac os Archives - 峰哥分享 https://www.dengnz.com/tag/mac-os/ 昨天,今天,明天,每天的每天,都多懂一点点... Mon, 13 Aug 2018 22:16:37 +0000 zh-CN hourly 1 https://wordpress.org/?v=6.5.4 https://www.dengnz.com/wp-content/uploads/2020/02/cropped-logo-32x32.png mac os Archives - 峰哥分享 https://www.dengnz.com/tag/mac-os/ 32 32 How to capture tooltip popup balloon on Mac OS – A capture delay technique https://www.dengnz.com/2018/08/01/how-to-capture-tooltip-popup-balloon-on-mac-os-a-capture-delay-technique/ https://www.dengnz.com/2018/08/01/how-to-capture-tooltip-popup-balloon-on-mac-os-a-capture-delay-technique/?noamp=mobile#respond Wed, 01 Aug 2018 22:47:24 +0000 https://www.dengnz.com/?p=956 Sometimes, you need to capture a screenshot with toolti… 阅读更多 »How to capture tooltip popup balloon on Mac OS – A capture delay technique

The post How to capture tooltip popup balloon on Mac OS – A capture delay technique appeared first on 峰哥分享.

]]>
Sometimes, you need to capture a screenshot with tooltip. But once your
press the screen capture shortcut, the tooltip disappears.

If you are on Mac OS, there is a build-in tool which you can use in this
situation.

Run the following command and get your screen ready in 5 seconds. You can
find your screen capture on your Desktop with the name screencapture.png.

screencapture -T 5 -C ~/Desktop/screencapture.png

The “-T 5” argument set the time delay to 5 seconds.
The “-C” argument ask the command to capture mouse as well.

ballon, screencapture

The post How to capture tooltip popup balloon on Mac OS – A capture delay technique appeared first on 峰哥分享.

]]>
https://www.dengnz.com/2018/08/01/how-to-capture-tooltip-popup-balloon-on-mac-os-a-capture-delay-technique/feed/ 0
How to install modules dependencies/packages for Python on Mac https://www.dengnz.com/2018/07/23/how-to-install-modules-dependencies-packages-for-python-on-mac/ https://www.dengnz.com/2018/07/23/how-to-install-modules-dependencies-packages-for-python-on-mac/?noamp=mobile#comments Mon, 23 Jul 2018 04:54:41 +0000 https://www.dengnz.com/?p=873 On my Mac OS EI Capitan, there are both python 2.7 and … 阅读更多 »How to install modules dependencies/packages for Python on Mac

The post How to install modules dependencies/packages for Python on Mac appeared first on 峰哥分享.

]]>
On my Mac OS EI Capitan, there are both python 2.7 and python 3 available. I don’t know whether there came from the OS or installed ages ago.

To install a new module, the following command can be used.

python -m pip install SomePackage

For me, python 2.7 doesn’t have pip installed.

fengnz@mac:~/GitLocal/seq2seq-attn > python -m pip install h5py
/usr/bin/python: No module named pip

installing pip through easy_install didn’t work either.

fengnz@mac:~/GitLocal/seq2seq-attn > sudo easy_install pip
Password:
Sorry, try again.
Password:
Searching for pip
Reading pypi.python.org/simple/pip/
Download error on pypi.python.org/simple/pip/: [SSL:
TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) --
Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading <a href="https://pypi.python.org/simple/">pypi.python.org/simple/</a>
Download error on pypi.python.org/simple/: [SSL:
TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) --
Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')

 

Python3 works.

python3 -m pip install h5py

The post How to install modules dependencies/packages for Python on Mac appeared first on 峰哥分享.

]]>
https://www.dengnz.com/2018/07/23/how-to-install-modules-dependencies-packages-for-python-on-mac/feed/ 1