Mac Python sublimeText

https://www.cnblogs.com/corolcorona/p/6678197.html

https://blog.csdn.net/olanlanxiari/article/details/48086917

https://blog.csdn.net/u014259820/article/details/81023224X

https://docs.brew.sh/Homebrew-and-Python

python -V
python3 -V

https://www.cnblogs.com/cynthia-wuqian/p/9303514.html

pip

https://www.cnblogs.com/xiexiaoxiao/p/7147920.html
https://zhuanlan.zhihu.com/p/32579762

卸载安装
https://blog.csdn.net/swiftfake/article/details/82591367

bogon:~ zlj$ brew install python3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).

Warning: python 3.7.3 is already installed and up-to-date
To reinstall 3.7.3, run `brew reinstall python`
bogon:~ zlj$ brew reinstall python
==> Reinstalling python
==> Installing dependencies for python: openssl and readline
==> Installing python dependency: openssl
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/openssl-1.0.2s.high_sierra.bottle.tar.g
######################################################################## 100.0%
==> Pouring openssl-1.0.2s.high_sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo ‘export PATH="/usr/local/opt/openssl/bin:$PATH"‘ >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> Summary
??  /usr/local/Cellar/openssl/1.0.2s: 1,795 files, 12.1MB
==> Installing python dependency: readline
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/readline-8.0.0_1.high_sierra.bottle.tar
######################################################################## 100.0%
==> Pouring readline-8.0.0_1.high_sierra.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

For pkg-config to find readline you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"

==> Summary
??  /usr/local/Cellar/readline/8.0.0_1: 48 files, 1.5MB
==> Installing python
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/python-3.7.3.high_sierra.bottle.1.tar.g
######################################################################## 100.0%
==> Pouring python-3.7.3.high_sierra.bottle.1.tar.gz
==> /usr/local/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts
==> /usr/local/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts
==> /usr/local/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

If you need Homebrew‘s Python 2.7 run
  brew install [email protected]

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
??  /usr/local/Cellar/python/3.7.3: 3,862 files, 59.9MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /usr/local/Cellar/openssl/1.0.2r... (1,795 files, 12.1MB)
Removing: /usr/local/Cellar/readline/8.0.0... (48 files, 1.5MB)
Removing: /Users/zhaolongjie/Library/Caches/Homebrew/xctool--0.3.5.high_sierra.bottle.tar.gz... (984KB)
Pruned 0 symbolic links and 2 directories from /usr/local
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo ‘export PATH="/usr/local/opt/openssl/bin:$PATH"‘ >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

For pkg-config to find readline you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"

==> python
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

If you need Homebrew‘s Python 2.7 run
  brew install [email protected]

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
bogon:~ zlj$ 

?

pip3 install requests

https://blog.csdn.net/Bo_wen_/article/details/50868339

xcodebuild -exportArchive -archivePath "xxxx.xcarchive" -exportPath "/path/to/export" -exportFormat "ipa" -exportProvisioningProfile "profile name"

原文地址:https://www.cnblogs.com/tom2015010203/p/11525451.html

时间: 2024-10-17 11:00:45

Mac Python sublimeText的相关文章

Mac下SublimeText 3配置C语言编译环境

1. SublimeText简述 Sublime Text是由程序员Jon Skinner于2008年1月份所开发出来,它最初被设计为一个具有丰富扩展功能的Vim.一款文本编译器怎么才能满足大部分程序员的需求呢? 首先,它得是跨平台的,linux,win,mac都可以用,每个平台上的软件都很好用也很关键: 其次功能强大(插件丰富),占用内存小,界面友好,比如编辑状态退出会自动保存,下次打开方便编译: 还有就是方便提交ftp, svn, git,查看本地文件历史纪录: 以上三个优点SublimeT

[Mac][Python][Virtualenv]安装配置和使用

安装帮助文档安装VirtualEnv报错如下 tekiMacBook-Air:workspaces hbai$ source /usr/local/bin/virtualenvwrapper.sh /usr/bin/python: No module named virtualenvwrapper virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not impo

mac python环境的安装与卸载(及homebrew相关)

换电脑之前并没有了解很多mac,所以习惯性的安装软件都是官网或者appstore下载来安装的,so,我下载了python2.7,并安装了,后来学习的视频是3.6的版本,有下载的3.6的版本来安装,过程中知道自带python2.7版本,也看到很多资料都提到homebrew,不过我学习的环境已经配置好了,几个版本也能共存,就想着不折腾了,然后课程结束之后,我就想着把自己安装的2.7版本卸载,开始探索... 一 .python卸载 1.删除Python框架 sudo rm -rf /Library/F

【Mac + Python + Selenium】之获取验证码图片code并进行登录

初稿代码,可以忽略不计(自己留着看) #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/01/15 13:27 # @Author : zc # @File : 115test.py from selenium import webdriver from selenium.webdriver.common.by import By from time import sleep from PIL import Image,Im

mac python opencv

在mac下使用opencv做了一个播放器 先从安装opencv说起: 1. 根据osx的版本下载安装macport,下载地址:https://guide.macports.org/#installing.shell 2. 安装NumPy:sudo port install py27-numpy 3. 安装opencv:sudo port install opencv +python27 测试是否安装好:

工具安装-Mac python 安装

1.官网下载 https://www.python.org/downloads/mac-osx/ 选择版本进行下载 2.安装应用 一路点击 安装完成 3.验证安装 打开终端 $ python 3 安装目录 $ which python 3 原文地址:https://www.cnblogs.com/zhangshan33/p/12580490.html

Mac Python PyQt5 环境搭建

pip install pyqt5 原文地址:https://www.cnblogs.com/BlueSkyyj/p/9452020.html

mac python selenium Chromedriver配置

安装selenium pip install selenium 下载Chromedriver http://npm.taobao.org/mirrors/chromedriver/ 将Chromedriver放在/usr/local/bin 最终代码 from selenium import webdriver import time driver = webdriver.Chrome() driver.get("http://www.baidu.com") time.sleep(3)

Mac OS下应用Python+Selenium实现web自动化测试

在Mac环境下的自动化测试环境搭建这里有一篇亲测通过的文. 不过在这个过程中要注意两点: 1.在终端联网执行命令“sudo pip install –U selenium”如果失败了的话,可以尝试用命令“sudo easy_install selenium”来安装selenium; 2.安装好PyCharm后新建project,Interpreter一定要选对,默认给出的两个可选项很有可能是不对的.亲测通过的一个Interpreter是“/usr/bin/python2.7”.如果你创建proj