/install/master/install)"
You can run after the installation.
Brew Doctor
If the
Your system is ready to brew.
On behalf of everything OK, if there is Warning, also don't worry too much, you can follow the steps to fix it!If there is a Warning, though you will see a sentence
If everything you use Homebrew for is working fine:please don ' t worry and just ignore them.
But it is also suggested that you install things well, an
Introduction: The Mac system comes with Python, but with the latest version of the current MAC system, for example, the Python version comes with the 2.* version, although it does not affect the operation of the old version of the project, but some syntax of the latest 3.* version of Python is not the same as the 2.* version, Online tutorial The great gods are certainly updated with the latest version of th
with Pip3/python3, so it should be run with Python3.Python3 manage.py RunserverLet the command line fly for a while ~... xxx.....xxxdjango.db.utils.operationalerror:unable to open database fileAn error has been made.6. Then run with administrator privileges:sudo python3 manage.py runserverPrint:Performing system check
The situation at that time: The Mac comes with Python2,1, installation Pyhon3:The first download from the official website installation package installation, installation directory in/library/frameworks/python.framework/versions/3.6/python/... Next, the package installed with PIP3 is also inside this (Site-package),Then uninstalled, using homebrew installation, the installation directory is changed under/usr/local/libBut it is also not possible to gen
I heard that recently Python has been included in the curriculum of primary school students, as a senior technical people, will not write Python, is simply anxious, probably this is called midlife crisis, then, since the pupils can learn, put down the posture, also to learn to write it, after all, there are skills can also beg mouth food.Hey, feed the dog.Python installationPython official website: https://www.python.org/Python Document: https://www.python.org/doc/The following are the installat
1. First step: see if the following paths are installed with Python 3.x# 打开以下目录, 版本号有可能不同cd /usr/local/Cellar/python/3.5.2_3/bin# 查看当前目录的内容ls2. Establishing a soft connection# 确认电脑上已经安装有 Python 3.x# 软连接命令说明:ln [-bfis] existing-file-list(source) new-link-b 如果需要创建的目标连接已存在相同文件名,则备份-f 强制创建目标链接-i 覆盖相同文件名时提示-s 创建符号连接# 需要软连接到 /usr/local/bin 目录下ln -s /usr/local/Cellar/python/3.5.2_3/bin/python3 /usr/local/bin/
Operating system: Mac10.11.5
python2.7.13
python3.6.1
Install Python2:Install pythonInstall Python3:Install Python3At this point, the command line input Python3 opens the Python3, and the input Python opens the Python2.Installing Ipython with PIPsudo Install Ipython sudo Install IpythonInstall Ipython with PIP is installed in the Python2 site-package
Tags: pip python3 macIt is recommended to install Python3 on Mac do not use source code to compile and install, but to useBrew Install Python3 for installationIn addition to creating the required environment after installation, specify the new Python environment as follows:Virtualenv-p/usr/local/cellar/
Issue backgroundPython programming on Mac Book Pro requires a different Python environment to be used in different projects due to the installation of Python2 and PYTHON3 environments, which requires switching between the two environments.System Configuration
Mac OS Yosemite 10.10.3 (14d136)
python2.7.9 python3.4.3
Solution Solutions
In
The latest version of the MacOS Sierra default Python environment is still 2.7.10, this article describes the use of brew installation python3.5 and simple configuration to create a PYTHON2,PYTHON3 coexistence development environmentTry the brew installation directly, prompting you to perform a brew link gdbmFollow the prompts to execute the brew link gdbm, prompting for directory permissions issuesthatsitdemacbook-pro:~ thatsit$ Brew link gdbmlinking
The MAC default installation version is 2.7.X, but the future trend will be python3, because MacOS relies on 2.7 of Python, so you can't change the default Python version. installing Python recommends using homebrew:
Brew Install Python3 installed with terminal operation:
Python//will run the default 2.7 versionPython3//will run the newly installed 3.x version
View current Python versionTerminal Enter Python, carriage return-->mac comes with Python, version number is 2.7 (Mac comes with Python2)Download1. Official website Download the required 3.0+ installation package, thisInstallation2. Fool-Type InstallationSet the default Python version to 31.Terminal under InputOpen ~/.bash_profileOpen configuration file2. Environment variables written to Python:Path="/libra
Mac OS 10.11.5Mac comes with python2.7, I downloaded the Python3.5,pip list to view the installation package in the system, I have the PIP and Setuptools installed on my computer, if not installed, please first usesudo apt-get install python3-setuptools
1
1
sudo apt-get install python3-pip
1
1
If the use o
You can download the source code for your own compilation, or directly through the PIP3 directly installed.Because the MAC system is installed Python2 by default, you need to install Python3 first, the following steps are described below.1. Install Xcode. This is nothing to say, most of the development of Mac without this, open AppStore download installation can.
environment variable path in the echo $PATH in mac terminal ,pycharm can be done without changing the initial value to run normally,However, python IDLE throws an exception, cannot find the geckodriver, must be re-assigned, with the executable program's absolute address to assign a value:Browser = Webdriver. Firefox (executable_path= '/usr/local/bin/geckodriver ')Can be executed normally, or you can directly find the webdriver.py in the selenium pack
My blog address: poke hereTo run the command:brew install opencv3 --with-python3 --c++11 --with-contrib brew link --force opencv3 Test:$ python3 3.5.120201612:52:19) 4.2.17.3.0 (clang-703.0.31)] on darwin "help""copyright""credits"or"license"for more information. >>>import cv2 If there is no error, the installation was successful, congratulations! Explain the above command first.Brew Install OPENCV3
Preface: If you are installing Python3 through brew, the latest version is python3.7.Enter Python at this time, carriage return, such as the default python2.7 old versionOf course you can also input Python3, enter as new version of python3.7 for the latest installationAs an early patient of intermittent obsessive-compulsive disorder and perfectionism, or want the Python command to use the latest
Note: All operations are best switched to the directory where the code is located1. Installing Py2appPIP3 Install Py2app2. Generating the setup filePy2applet--make-setup xxx.py3. Packaging#自己开发, packaging is fast. (Because the machine has a dependent library installed, it can be run directly)Python setup.py py2app-a#给其他没有sdk的电脑使用, including Lib library. (The computer that does not have the SDK installed, need to remove-A, all dependencies will be packaged.) )Python setup.py Py2appMac pack
The server needs to have a python environment, as well as a Python-run dependency package, and Java communicates with Python using process processes.Installing homebrew/usr/bin/ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"Installing Python3 with HomebrewThe Brew install Python3 will automatically configure the environment variable installation complete can be which
This article is based on a previously written Chrome+selenium+python environment configuration, linked http://blog.csdn.net/zxy987872674/article/details/53082896Before writing selenium script, all use of Chrome browser, see a lot of people say that Firefox does not need to install additional driver to fit selenium, thought can run directly, but today installed selenium IDE environment, want to use the next Firefox browser, Just write a script to test it:from selenium import webdriverimport timed
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.