1. windows under cmd use
1.1 cmd command line under the issue of bitmap fonts can not be modified
# Currently using win7 system 1. Control Panel - Clock, Language, and Regional - Regional and Language - Change the language - Management - Change system locale - set the current system locale to Chinese (Simplified, Chinese ) 2. restart the computer
1.2 supports the right mouse button to open a command line window in the current directory location
1. Create openCmdhere.reg file, and double-click the file execution
Registry Editor Version 5.00 Windows [HKEY_CLASSES_ROOT \ Directory \ shell \ OpenCmdHere] @ = " Open Command Prompt Here " " Icon " = " cmd.exe " [HKEY_CLASSES_ROOT \ Directory \ shell \ OpenCmdHere \ the Command] @ = " PowerShell - -Command hidden WindowStyle \ "the Start-Process cmd.exe -ArgumentList '/ S, / K, the pushd,% V' -Verb the RunAs \" " [the HKEY_CLASSES_ROOT \ Directory \ Background \ the shell \ OpenCmdHere] @ = " here open command window " " Icon " = " cmd.exe " [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\"" [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\"" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere] @="在此处打开命令窗口" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command] @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
2. Install the python environment
2.1 official website to download the installation package python
1. python official website address: https://www.python.org/downloads/windows/
2. Configure Environment Variables
2.2 Source installation setuptools
1. Download Source: HTTPS: //pypi.org/project/pip/ # Files 2 . After extracting the source, right click to open the cmd 3. cmd execute: python setup.py install
2.3 pip source installation
1. Download Source: HTTPS: //pypi.org/project/setuptools/ # Files 2 . After extracting the source, right click to open the cmd 3. cmd execute: python setup.py install
2.4 Setting domestic pip source
1. Under the home directory (eg C: \ Users \ Administrator) to create the file: pip / pip.ini.
[global] index-url = http://pypi.douban.com/simple/ [install] trusted-host = pypi.douban.com
3. python virtual environment
1 . PIP install virtualenv 2. PIP install virtualenvwrapper- win 3. Add the environment variable: WORK_ON
1. Basic Usage
# Create a virtual environment mkvirtualenv test_env [- Python = " fill in the python path " ] # selected virtual environments Work ON [test_env] # exit the virtual environment deactivate
4. Notes
1. Whether python installation path or the user's home directory, do not use Chinese.
2. Install a third-party package python in windows, preferentially use the address: https: //www.lfd.uci.edu/~gohlke/pythonlibs/