Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pymysql
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e5/30/20467e39523d0cfc2b6227902d3687a16364307260c75e6a1cb4422b0c62/PyMySQL-1.1.0-py3-none-any.whl (44 kB)
---------------------------------------- 0.0/44.8 kB ? eta -:--:--
--------- ------------------------------ 10.2/44.8 kB ? eta -:--:--
--------- ------------------------------ 10.2/44.8 kB ? eta -:--:--
--------- ------------------------------ 10.2/44.8 kB ? eta -:--:--
-------------------------------------- 44.8/44.8 kB 200.7 kB/s eta 0:00:00
Installing collected packages: pymysql
Successfully installed pymysql-1.1.0
Note: you may need to restart the kernel to use updated packages.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: sqlalchemy in d:\anaconda3\lib\site-packages (1.4.39)
Requirement already satisfied: greenlet!=0.4.17 in d:\anaconda3\lib\site-packages (from sqlalchemy) (2.0.1)
Note: you may need to restart the kernel to use updated packages.
Note: you may need to restart the kernel to use updated packages.Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting sqlalchemy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/22/80/43ddb1ddeafdcbc3073c0e7a7d45b17678eeac4830c7e91bd6556527f311/SQLAlchemy-2.0.25-cp311-cp311-win_amd64.whl (2.1 MB)
Collecting typing-extensions>=4.6.0 (from sqlalchemy)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting greenlet!=0.4.17 (from sqlalchemy)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/47/79/26d54d7d700ef65b689fc2665a40846d13e834da0486674a8d4f0f371a47/greenlet-3.0.3-cp311-cp311-win_amd64.whl (292 kB)
Installing collected packages: typing-extensions, greenlet, sqlalchemy
Successfully installed greenlet-3.0.3 sqlalchemy-2.0.25 typing-extensions-4.9.0
WARNING: Target directory d:\anaconda3\lib\site-packages\greenlet already exists. Specify --upgrade to force replacement.
WARNING: Target directory d:\anaconda3\lib\site-packages\sqlalchemy already exists. Specify --upgrade to force replacement.
WARNING: Target directory d:\anaconda3\lib\site-packages\typing_extensions.py already exists. Specify --upgrade to force replacement.
WARNING: Target directory d:\anaconda3\lib\site-packages\__pycache__ already exists. Specify --upgrade to force replacement.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting sqlalchemy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/22/80/43ddb1ddeafdcbc3073c0e7a7d45b17678eeac4830c7e91bd6556527f311/SQLAlchemy-2.0.25-cp311-cp311-win_amd64.whl (2.1 MB)
Collecting typing-extensions>=4.6.0 (from sqlalchemy)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting greenlet!=0.4.17 (from sqlalchemy)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/47/79/26d54d7d700ef65b689fc2665a40846d13e834da0486674a8d4f0f371a47/greenlet-3.0.3-cp311-cp311-win_amd64.whl (292 kB)
Installing collected packages: typing-extensions, greenlet, sqlalchemy
Successfully installed greenlet-3.0.3 sqlalchemy-2.0.25 typing-extensions-4.9.0
Note: you may need to restart the kernel to use updated packages.
from sqlalchemy import create_engine
# 创建数据
data = np.random.randint(0,150,size=(150,3))
df = pd.DataFrame(data=data,columns=["Python","Pandas","PyTorch"])# 查看前5条数据
df.head()