How does python import dependency packages

The first step: open pycharm: File-Settings

Step 2: Project: (your project name)-Project InterPreter-click the plus sign on the right

Step 3: Search for the dependency to download in the window-select and click install package in the lower left corner to import the dependency package

Content expansion:

Python import and export dependent package commands

The program must include a requirements.txt file to record all dependent packages and their precise version numbers. If you want to regenerate the virtual environment on another computer, the importance of this file is reflected, such as the computer used when deploying the program. pip can use the following command to automatically generate this file

pip freeze  requirements.txt

If you want to create a complete copy of this virtual environment, you can create a new virtual environment and run the following commands on it:

pip install -r requirements.txt

Recommended Posts

How does python import dependency packages
How does python update packages
How does python output backslashes
How does python perform matrix operations
How does Python list update value
How does python change the environment
How does python enter interactive mode
How does Python generate xml files
How does python determine prime numbers
How does python improve the calculation speed
How does Python handle the json module
How does python distinguish return and yield
How does Python call cmd using OS modules
How does Python store data to json files
How does python call the key of a dictionary
How does python get input examples from the keyboard
How to understand the introduction of packages in Python
How python was invented
How does python handle the program cannot be opened
How does python judge the module installation is complete
How Python parses XML
How long does it take to learn python by myself?
How to comment python code
How Python converts string case
How to learn python quickly
How to uninstall python plugin
Does Python support multiple inheritance?
How Python implements FTP function
How to understand python objects
How to use python tuples
python functions, classes, modules, packages
Explain how python references package package