python

How to install Anaconda and virtual environment configuration, requirements.txt import and export related solutions in Pycharm

1. Introduction to Anaconda 1 Introduction Anaconda(Official website) is a release version that can easily obtain and manage packages, and at the same time can uniformly manage the environment. Anaconda includes more than 180 scientific packages and their dependencies including conda and Python. 2. Features Anaconda has the following features: Open source Easy installation process High performance... »

iQiyi user retention forecast

User behavior sequence modeling iQiyi user behavior sequence modeling Article directory User behavior sequence modelingPreface1. Competition background2. Feature extraction1. User behavior sequence feature extraction2. User attribute feature extraction 3. Modeling4. Summary Preface The user retention prediction competition organized by iQiyi predicts how many days users will log into the app in th... »

Pandas knowledge points-detailed explanation of grouping function groupby

Pandas knowledge points-detailed explanation of grouping function groupby During data analysis, it is often necessary to divide data into different groups. The groupby() function in pandas can perfectly complete various grouping operations.Grouping is based on a certain field value of the DataFrame/Series, and the rows/columns with equal values ​​of the field are divided into the same group. Each ... »

Detailed explanation of UnitTest for Python interface automated testing

basic concept The UnitTest unit testing framework is inspired by JUnit and has a similar style to mainstream unit testing frameworks in other languages. It supports test automation, configuration sharing and shutdown code testing. Supports aggregating test cases into test sets and making tests independent of the reporting framework. It is divided into four parts: test fixture, TestCase, test suite... »

Solution to SSL failure reported during compilation and installation of python3.10

1. Upgrade openssl version – compile and install Download the OpenSSL file from the official website https://www.openssl.org/source/openssl-1.1.1n.tar.gz 2. After downloading, unzip and compile #cd software #tar -zxvf openssl-1.1.1n.tar.gz #cd openssl-1.1.1n #./config --prefix=/usr/local/openssl #make #make install 3. Modify the link file #Back up the original link #mv /usr/bin/openssl /usr/... »

Package python project into exe and installation package

1. Package Flask project 1.1 Write your own Flask 2.2 Download pyinstaller pip install pyinstaller Optional parametersExampleillustrate-Fpyinstaller -F demo.pyOnly generate a program demo.exe file in the dist folder, suitable for a module without multiple dependent .py files-Dpyinstaller -D demo.pyThe default option, in addition to the main program demo.exe, will also generate many dependency file... »

ImportError: cannot import name ‘Literal‘ from ‘typing‘ (D:\Anaconda\envs\tensorflow\lib\typing.py)

Error background: Because it is necessary to install the tensorflow-gpu version, I downgraded python3.8 in the original newly created anaconda environment (my name is tensorflow) to 3.7. When importing the seaborn package, the following error occurred: ImportError: cannot import name 'Literal' from 'typing' (D:\Anaconda\envs\tensorflow\lib\typing.py) Cause Analysis: This is because ‘Literal&... »

Selenium practical application – realizing automatic playback of courses on Zhidao wisdom tree

Preface The school has arranged courses on the Wisdom Tree platform. I don’t want to learn but I have to learn. It’s that simple.(How dare you say such rebellious words, brother). Hahahaha, of course not. I am a contemporary college student who loves learning and is eager to arm myself with the power of knowledge. The school has provided us with such excellent courses. Of course, we cannot let dow... »

Selenium simulation browser in Python

1.What is selenium? http://www.selenium.org.cn/ Selenium is a tool for web application testing.Selenium tests run directly in the browser, just like real users.Supports driving real browsers through various drivers (FirfoxDriver, IternetExplorerDriver, OperaDriver, ChromeDriver) to complete testing.Selenium also supports interfaceless browser operation. 2. Why use selenium Simulate browser functio... »

YOLO series — YOLOV7 algorithm (1): Use a custom data set to run through the YOLOV7 algorithm

YOLO series—YOLOV7 algorithm (1): Use custom data sets to run through the YOLOV7 algorithm Isn’t this embarrassing? . . Just after I understood the YOLO V6 algorithm from Perfect Group, V7 came out. . . And the most important thing is that V7 is also endorsed by the author of V4. Fortunately, both V6 and V7 are modified codes based on YOLO V5, so the code reads more smoothly. The YOLOV7 algo... »

Page 1 of 202123»