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