Python 3.11.0下载安装并使用help查看模块信息(Win11)

本文介绍了Python 3.11.0在Windows 11系统的下载安装过程,包括从官网下载安装包、定制安装路径等步骤。还讲解了在命令行使用help查看Python模块信息的方法,如显示所有模块、查看模块详细信息等,同时给出了相关参考资料。

Python 3.11.0下载安装

Python官网: Welcome to Python.org 

官网首页,Downloads菜单。

 

点击“Python 3.11.0”,开始下载安装包,下载完成后得到文件“python-3.11.0-amd64.exe”。

 

双击该文件即开始安装,

 

先勾选“Add Python.exe to PATH”,再点击“Customize installation”(定制安装)。

 

 

指定安装位置“d:\Programs\Python\Python311”。点击“Install”。

 

等待一段时间后,完成安装。

 

点击“Close”即可完成安装。

完成安装后,在Windows的开始菜单中,添加了几个新的菜单项:

安装目录信息截图如下:

 

 

在命令行使用help查看模块信息

在Windows中可以在开始菜单中点击“Python 3.11 Module Docs”,在窗口中查看。

但是在命令行中查看更方便些。

由于在安装时,将Python的安装目录加入到系统变量PATH中,所以可以在命令行直接进入。

在命令行依次键入命令python,进入Python。依次键入下列命令

help()

modules

即可显示Python的所有模块。

显示的模块名大概是300个,如下表所示在命令行提示符为“help>”时,键入模块名,即可显示该模块的详细信息。比如键入pip,命令执行之后的效果如下图所示:

 

列出了NAME(模块名)、PACKAGE CONTENTS(包内容)、FUNCTIONS(函数)、DATA(数据)、VERSION(版本号)、FILE(文件,包含了目录)

在命令行提示符为“help>”时,按下回车键,返回Python的命令行,提示符变为“>>>”。

可以使用import、dir、print、help命令显示包(模块)的一些信息,如下图所示:

其中键入的命令依次如下:

import pip

dir(pip)

help(pip.main)

相关参考资料:

  1. Python 3.11正式版来了,比3.10快10-60%,官方:这或许是最好版本. https://www.toutiao.com/article/7158328079793013288/?log_from=b56466eb0a54_1667218455520 
  2. Python官网:Welcome to Python.org 

 

 

 

 

 

(base) PS C:\Users\张宇> activate paddle (base) PS C:\Users\张宇> conda activate paddle (F:\your\custom\path\paddle) PS C:\Users\张宇> python Python 3.9.23 | packaged by conda-forge | (main, Jun 4 2025, 17:49:16) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> python --version Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name &#39;python&#39; is not defined >>> quit() (F:\your\custom\path\paddle) PS C:\Users\张宇> python --version Python 3.9.23 (F:\your\custom\path\paddle) PS C:\Users\张宇> python -m pip install paddlepaddle==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/ Looking in indexes: https://www.paddlepaddle.org.cn/packages/stable/cpu/ DEPRECATION: Wheel filename &#39;paddlepaddle-3.1.1.-cp310-cp310-macosx_11_0_arm64.whl&#39; is not correctly normalised. Future versions of pip will raise the following error: Invalid wheel filename (invalid version): &#39;paddlepaddle-3.1.1.-cp310-cp310-macosx_11_0_arm64&#39; pip 25.3 will enforce this behaviour change. A possible replacement is to rename the wheel to use a correctly normalised name (this may require updating the version in the project metadata). Discussion can be found at https://github.com/pypa/pip/issues/12938 DEPRECATION: Wheel filename &#39;paddlepaddle-3.1.1.-cp311-cp311-macosx_11_0_arm64.whl&#39; is not correctly normalised. Future versions of pip will raise the following error: Invalid wheel filename (invalid version): &#39;paddlepaddle-3.1.1.-cp311-cp311-macosx_11_0_arm64&#39; pip 25.3 will enforce this behaviour change. A possible replacement is to rename the wheel to use a correctly normalised name (this may require updating the version in the project metadata). Discussion can be found at https://github.com/pypa/pip/issues/12938 DEPRECATION: Wheel filename &#39;paddlepaddle-3.1.1.-cp39-cp39-macosx_11_0_arm64.whl&#39; is not correctly normalised. Future versions of pip will raise the following error: Invalid wheel filen
08-29
(pytorch) C:\Users\jh>pip list Package Version Build ---------------------------- -------------- ----- absl-py 2.1.0 aiohappyeyeballs 2.4.3 aiohttp 3.10.10 aiosignal 1.3.1 annotated-types 0.7.0 anyio 4.4.0 argon2-cffi 23.1.0 argon2-cffi-bindings 21.2.0 arrow 1.3.0 arviz 0.19.0 asttokens 2.4.1 astunparse 1.6.3 async-lru 2.0.4 attrs 24.2.0 babel 2.16.0 beautifulsoup4 4.12.3 bleach 6.1.0 Brotli 1.1.0 build 1.2.1 cachetools 5.4.0 certifi 2024.7.4 cffi 1.17.1 chardet 5.2.0 charset-normalizer 3.3.2 click 8.1.7 cloudpickle 3.0.0 colorama 0.4.6 comm 0.2.2 cons 0.4.6 contourpy 1.2.1 cryptography 43.0.3 cycler 0.12.1 debugpy 1.8.5 decorator 5.1.1 defusedxml 0.7.1 distro 1.9.0 dm-tree 0.1.8 elasticsearch7 7.17.12 esda 2.7.0 et-xmlfile 1.1.0 etuples 0.3.9 executing 2.1.0 factor_analyzer 0.5.1 Farama-Notifications 0.0.4 fastjsonschema 2.20.0 filelock 3.15.4 flatbuffers 24.3.25 fonttools 4.53.1 fqdn 1.5.1 frozenlist 1.5.0 fsspec 2024.6.1 funcy 2.0 gast 0.6.0 gensim 4.3.3 geopandas 1.0.1 google-ai-generativelanguage 0.6.6 google-api-core 2.19.1 google-api-python-client 2.141.0 google-auth 2.33.0 google-auth-httplib2 0.2.0 google-generativeai 0.7.2 google-pasta 0.2.0 googleapis-common-protos 1.63.2 grpcio 1.65.4 grpcio-status 1.62.3 gym 0.26.2 gym-notices 0.0.8 gymnasium 0.29.1 h11 0.14.0 h5netcdf 1.3.0 h5py 3.11.0 httpcore 1.0.5 httplib2 0.22.0 httpx 0.27.2 idna 3.7 imageio 2.37.0 inflate64 1.0.1 ipykernel 6.29.5 ipython 8.27.0 ipywidgets 8.1.5 isoduration 20.11.0 Janome 0.5.0 jedi 0.19.1 jieba 0.42.1 Jinja2 3.1.4 jiter 0.5.0 joblib 1.4.2 json5 0.9.25 jsonpointer 3.0.0 jsonschema 4.23.0 jsonschema-specifications 2023.12.1 jupyter 1.1.1 jupyter_client 8.6.2 jupyter-console 6.6.3 jupyter_core 5.7.2 jupyter-events 0.10.0 jupyter-lsp 2.2.5 jupyter_server 2.14.2 jupyter_server_terminals 0.5.3 jupyterlab 4.2.5 jupyterlab_pygments 0.3.0 jupyterlab_server 2.27.3 jupyterlab_widgets 3.0.13 keras 3.6.0 kiwisolver 1.4.5 libclang 18.1.1 libpysal 4.13.0 lightgbm 4.6.0 logical-unification 0.4.6 lxml 5.3.0 Markdown 3.7 markdown-it-py 3.0.0 MarkupSafe 2.1.5 matplotlib 3.9.2 matplotlib-inline 0.1.7 mdurl 0.1.2 miniKanren 1.0.3 mistune 3.0.2 ml-dtypes 0.4.1 mpmath 1.3.0 multidict 6.1.0 multipledispatch 1.0.0 multivolumefile 0.2.3 namex 0.0.8 nbclient 0.10.0 nbconvert 7.16.4 nbformat 5.10.4 nest-asyncio 1.6.0 networkx 3.3 nltk 3.9.1 notebook 7.2.2 notebook_shim 0.2.4 numexpr 2.10.2 numpy 1.26.4 openai 1.54.4 openpyxl 3.1.5 opt-einsum 3.3.0 optree 0.13.1 overrides 7.7.0 packaging 24.1 pandas 2.2.2 pandocfilters 1.5.1 parso 0.8.4 patsy 0.5.6 pdfminer.six 20240706 pgmpy 0.1.26 pillow 10.4.0 pip 25.1.1 pip-tools 7.4.1 platformdirs 4.3.2 plotly 5.24.0 prometheus_client 0.20.0 prompt_toolkit 3.0.47 propcache 0.2.0 proto-plus 1.24.0 protobuf 4.25.4 psutil 6.0.0 pure_eval 0.2.3 py7zr 0.22.0 pyasn1 0.6.0 pyasn1_modules 0.4.0 pybcj 1.0.6 pycparser 2.22 pycryptodomex 3.22.0 pydantic 2.8.2 pydantic_core 2.20.1 pydot 3.0.4 Pygments 2.18.0 pyLDAvis 3.4.1 pymc 5.16.2 pyogrio 0.10.0 pyparsing 3.1.2 pyppmd 1.1.1 pyproj 3.7.1 pyproject_hooks 1.1.0 pytensor 2.25.2 python-dateutil 2.9.0.post0 python-docx 1.1.2 python-dotenv 1.0.1 python-json-logger 2.0.7 pytz 2024.1 pywin32 306 pywinpty 2.0.13 PyYAML 6.0.2 pyzmq 26.2.0 pyzstd 0.16.2 rarfile 4.2 referencing 0.35.1 regex 2024.7.24 requests 2.32.3 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rich 13.7.1 rpds-py 0.20.0 rsa 4.9 scikit-learn 1.5.1 scipy 1.13.1 seaborn 0.13.2 Send2Trash 1.8.3 setuptools 73.0.1 shapely 2.1.0 six 1.16.0 smart-open 7.1.0 sniffio 1.3.1 soupsieve 2.6 stable_baselines3 2.3.2 stack-data 0.6.3 statsmodels 0.14.2 sympy 1.13.2 tenacity 9.0.0 tensorboard 2.18.0 tensorboard-data-server 0.7.2 tensorflow 2.18.0 tensorflow_intel 2.18.0 termcolor 2.5.0 terminado 0.18.1 texttable 1.7.0 threadpoolctl 3.5.0 tinycss2 1.3.0 toolz 0.12.1 torch 2.4.0 torchaudio 2.4.0 torchvision 0.19.0 1 tornado 6.4.1 tqdm 4.66.5 traitlets 5.14.3 types-python-dateutil 2.9.0.20240906 typing_extensions 4.12.2 tzdata 2024.1 uri-template 1.3.0 uritemplate 4.1.1 urllib3 2.2.3 wcwidth 0.2.13 webcolors 24.8.0 webencodings 0.5.1 websocket-client 1.8.0 Werkzeug 3.1.3 wheel 0.44.0 widgetsnbextension 4.0.13 wordcloud 1.9.4 wrapt 1.17.0 xarray 2024.7.0 xarray-einstats 0.7.0 xgboost 2.1.1 xlrd 2.0.1 yarl 1.17.1 (pytorch) C:\Users\jh>python Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug 6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import torch Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\jh\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\__init__.py", line 148, in <module> raise err OSError: [WinError 126] 找不到指定的模块。 Error loading "C:\Users\jh\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. >>>
06-29
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Alexabc3000

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值