
Installed Python-3.6.8 to /Users/tina/.pyenv/versions/3.6. WARNING: The Python bz2 extension was not compiled. Hunk #1 succeeded at 495 (offset -15 lines). Hunk #1 succeeded at 3375 (offset -51 lines).
#Mac install python 3.6 install
添加环境变量 export LDFLAGS="-L/usr/local/opt/zlib/lib"ĬFLAGS="-I$(brew -prefix openssl)/include -I$(brew -prefix bzip2)/include -I$(brew -prefix readline)/include -I$(xcrun -show-sdk-path)/usr/include" LDFLAGS="-L$(brew -prefix openssl)/lib -L$(brew -prefix readline)/lib -L$(brew -prefix zlib)/lib -L$(brew -prefix bzip2)/lib" pyenv install -patch 3.6.8 < <(curl -sSL \?full_index\=1) Zipimport.ZipImportError: can't decompress data zlib not available Modules/errnomodule.c -o Modules/errnomodule.o I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/tina/.pyenv/versions/3.6.8/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/tina/.pyenv/versions/3.6.8/include -c. Modules/posixmodule.c:8805:18: note: enclose 'pwritev' in a _builtin_available check to silence this warningĬlang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX.sdk/usr/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I. Ssize_t pwritev(int, const struct iovec *, int, off_t) _DARWIN_NOCANCEL(pwritev) _API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0)) Results logged to /var/folders/m6/z1s97vbs7xd4wzf6qcnm5xw80000gn/T/ If you do not come to lab, we will assume you have taken care of this yourself. However, this is an opportunity to come to ensure that you have Python, P圜harm, and PyGame installed and working properly on your laptops. This will create a virtual environment for the project within the base directory folder /Users/simon/.local/share/virtualenvs and install the requests package.Pyenv安装python问题解决 mac升级系统后pyenv安装python问题īUILD FAILED (OS X 10.16 using python-build 1.2.21-1-g943015eb) There is nothing formal to turn in for this Lab, and no grade will be given. In a terminal session change directory to a python project and then issue the following command: The version of the installed pipenv package should be reported. Test that the pipenv utility can be located by typing the following in a terminal session:

Reboot the system or enter the following command in a terminal session: Edit ~/.bash_profile and add the Python 3 binaries to the path environment variable.Įxport PATH="/Library/Frameworks/amework/Versions/3.6/bin:$" Subsequently, the system path needs to be modified. Python 3 can be run by typing python3 in a command shell.

The Python 3.6.x installer installs binaries into /Library/Frameworks/amework/Versions/3.6/bin and creates a symbolic link to the Python 3 executable in /usr/local/bin.
#Mac install python 3.6 download
Download Python and run the installer package.
#Mac install python 3.6 how to
This page documents how to configure python on MacOS and use pipenv for package management.Īt the time of writing the latest version of Python is 3.6.5.
