I. Introduction of the three Sacred artifacts:
- Virtualenv is used to create a virtual Python environment, a project-specific Python environment. Virtualenv is very useful to keep a clean environment. 2. PIP is used to solve project dependency problems. Write all of your project’s dependent third-party libraries in a requirements.txt batch installation using PIP. Generally used with virtualEnv, all packages are installed in the Virtualenv environment. 3. Fabric is a convenient way to automate remote deployment projects. You can execute a series of shell commands locally and remotely as needed
Two, knowledge summary
1. Learn about Package management in Python: PIP
2. Setting up environment variables
3. Use the big method, repeatedly beat
I.c ls
Ii. The PIP command
Iii. The PIP list command
4. Function 1 – help: PIP + help + subcommand The function of the subcommand is displayed
5. Function 2 — list: PIP + list displays installed packages
6. Feature 3 — uninstall: PIP + uninstall + (a string of package names separated by Spaces and must be installed packages) uninstall packages
Install: PIP + install + package name + [== version number]
8. Function 5 — show: PIP + show + package name Displays package information
9. Function 6 — Download: The same syntax as install is used to download the software
10. Function 7 — wheel: Package the local device and install the package
I. Parameter –wheel-dir= directory
Feature 8 — Update: PIP install –upgrade + package name
Hotspot issues
1. Update PIP issues:
Using python -m PIP install –upgrade PIP is recommended
2. Wheel-dir parameter:
Run the –wheel-dir= directory, for example, PIP wheel –wheel-dir=D:/haha/ bottle
If you need help learning Python, you can add satellite: 762459510