Win11查看安装的Python路径及安装的库


Win11查看安装的Python路径及安装的库


Python3(基础|高级)语法实战(|多线程|多进程|线程池|进程池技术)|多线程安全问题解决方案实战


Win11查看安装的Python路径及安装的库

anaconda3最新版安装|使用详情|Error: Please select a valid Python interpreter

Python函数绘图与高等代数互融实例(一):正弦函数与余弦函数

Python函数绘图与高等代数互融实例(二):闪点函数

Python函数绘图与高等代数互融实例(三):设置X|Y轴|网格线

Python函数绘图与高等代数互融实例(四):设置X|Y轴参考线|参考区域

Python函数绘图与高等代数互融实例(五): 则线图综合案例


一: python安装路径查看

1.1: windows键+R 打开cmd窗口:输入python  然后输入import sys  ;    sys.path;

如下图所示即可查看安装的位置; 退出该界面执行: quit(); 或者Ctrl+Z;


1.2:  cmd窗口输入: where python

 打开路径, cd 到输出的路径,之后输入:start.  会自动弹出安装的目录窗口.......................

输入start. 弹出如下窗显示pip安装依赖库目录 

1.3: 查看已经安装的库

D:\program_file_worker\anaconda>pip list
Package                       Version
----------------------------- ---------------
aiobotocore                   2.4.2
aiofiles                      22.1.0
aiohttp                       3.8.3
aioitertools                  0.7.1
aiosignal                     1.2.0
aiosqlite                     0.18.0
alabaster                     0.7.12
anaconda-catalogs             0.2.0
anaconda-client               1.12.0
anaconda-navigator            2.4.2
anaconda-project              0.11.1
anyio                         3.5.0
appdirs                       1.4.4
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
arrow                         1.2.3
astroid                       2.14.2
astropy                       5.1
asttokens                     2.0.5
async-timeout                 4.0.2
atomicwrites                  1.4.0
attrs                         22.1.0
Automat                       20.2.0
autopep8                      1.6.0
Babel                         2.11.0
backcall                      0.2.0
backports.functools-lru-cache 1.6.4
backports.tempfile            1.0
backports.weakref             1.0.post1
bcrypt                        3.2.0
beautifulsoup4                4.12.2
binaryornot                   0.4.4
black                         0.0
bleach                        4.1.0
bokeh                         3.2.1
boltons                       23.0.0
boto3                         1.24.28


D:\program_file_worker\anaconda>pip freeze
aiobotocore @ file:///C:/b/abs_74o47svlua/croot/aiobotocore_1680004300264/work
aiofiles @ file:///C:/b/abs_9ex6mi6b56/croot/aiofiles_1683773603390/work
aiohttp @ file:///C:/ci_311/aiohttp_1676432932774/work
aioitertools @ file:///tmp/build/80754af9/aioitertools_1607109665762/work
aiosignal @ file:///tmp/build/80754af9/aiosignal_1637843061372/work
aiosqlite @ file:///C:/b/abs_9djc_0pyi3/croot/aiosqlite_1683773915844/work
alabaster @ file:///home/ktietz/src/ci/alabaster_1611921544520/work
anaconda-catalogs @ file:///C:/b/abs_8btyy0o8s8/croot/anaconda-catalogs_1685727315626/work
anaconda-client==1.12.0
anaconda-navigator==2.4.2
anaconda-project @ file:///C:/ci_311/anaconda-project_1676458365912/work
anyio @ file:///C:/ci_311/anyio_1676425491996/work/dist
appdirs==1.4.4
argon2-cffi @ file:///opt/conda/conda-bld/argon2-cffi_1645000214183/work
argon2-cffi-bindings @ file:///C:/ci_311/argon2-cffi-bindings_1676424443321/work
arrow @ file:///C:/ci_311/arrow_1678249767083/work
astroid @ file:///C:/ci_311/astroid_1678740610167/work
astropy @ file:///C:/ci_311_rebuilds/astropy_1678996071858/work
asttokens @ file:///opt/conda/conda-bld/asttokens_1646925590279/work
async-timeout @ file:///C:/ci_311/async-timeout_1676431518331/work
atomicwrites==1.4.0
attrs @ file:///C:/ci_311/attrs_1676422272484/work


1.4:过时的库:pip list --outdated

D:\program_file_worker\anaconda>pip list --outdated
Package                       Version   Latest       Type
----------------------------- --------- ------------ -----
aiobotocore                   2.4.2     2.6.0        wheel
aiofiles                      22.1.0    23.2.1       wheel
aiohttp                       3.8.3     3.8.5        wheel
aioitertools                  0.7.1     0.11.0       wheel
aiosignal                     1.2.0     1.3.1        wheel
aiosqlite                     0.18.0    0.19.0       wheel
alabaster                     0.7.12    0.7.13       wheel
anyio                         3.5.0     4.0.0        wheel
argon2-cffi                   21.3.0    23.1.0       wheel
astroid                       2.14.2    2.15.6       wheel
astropy                       5.1       5.3.2        wheel
asttokens                     2.0.5     2.4.0        wheel
async-timeout                 4.0.2     4.0.3        wheel
atomicwrites                  1.4.0     1.4.1        sdist
attrs                         22.1.0    23.1.0       wheel
Automat                       20.2.0    22.10.0      wheel
autopep8                      1.6.0     2.0.4        wheel
Babel                         2.11.0    2.12.1       wheel
backports.functools-lru-cache 1.6.4     1.6.6        wheel
bcrypt                        3.2.0     4.0.1        wheel
black                         0.0       23.7.0       wheel
bleach                        4.1.0     6.0.0        wheel
bokeh                         3.2.1     3.2.2        wheel
boto3                         1.24.28   1.28.40      wheel
botocore                      1.27.59   1.31.40      wheel
Bottleneck                    1.3.5     1.3.7        wheel
chardet                       4.0.0     5.2.0        wheel
charset-normalizer            2.0.4     3.2.0        wheel
click                         8.0.4     8.1.7        wheel
comm                          0.1.2     0.1.4        wheel
conda-pack                    0.6.0     0.7.1        wheel
contourpy                     1.0.5     1.1.0        wheel
cookiecutter                  1.7.3     2.3.0        wheel
cryptography                  41.0.2    41.0.3       wheel
cssselect                     1.1.0     1.2.0        wheel
cytoolz                       0.12.0    0.12.2       wheel
daal4py                       2023.1.1  2023.2.1     wheel
dask                          2023.6.0  2023.9.0     wheel
datashader                    0.15.1    0.15.2       wheel
debugpy                       1.6.7     1.6.7.post1  wheel
diff-match-patch              20200713  20230430     wheel
dill                          0.3.6     0.3.7        wheel
distributed                   2023.6.0  2023.9.0     wheel
docstring-to-markdown         0.11      0.12         wheel
docutils                      0.18.1    0.20.1       wheel
executing                     0.8.3     1.2.0        wheel
fastjsonschema                2.16.2    2.18.0       wheel
filelock                      3.9.0     3.12.3       wheel
flake8                        6.0.0     6.1.0        wheel
Flask                         2.2.2     2.3.3        wheel
fonttools                     4.25.0    4.42.1       wheel
frozenlist                    1.3.3     1.4.0        wheel
fsspec                        2023.3.0  2023.9.0     wheel
gensim                        4.3.0     4.3.2        wheel
greenlet                      2.0.1     2.0.2        wheel 

1.5:python 标准库位置: %python安装路径%\Lib

1.6:第三方库安装的路径

第三方库位置: %python安装路径%\Lib\site-packages

  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 要在Win11安装Python和PyCharm,您可以按照以下步骤进行操作: 1. 首先,您需要从Python官方网站下载适用于Windows的Python安装程序。选择适合您的操作系统和位数的版本,然后下载并安装它。 2. 安装完成后,您需要将Python添加到系统环境变量中。打开“控制面板”,然后选择“系统和安全”>“系统”>“高级系统设置”>“环境变量”。在“系统变量”中找到“Path”变量,然后单击“编辑”。在变量值中添加Python安装路径,例如“C:\Python39”,然后单击“确定”。 3. 接下来,您需要下载并安装PyCharm。您可以从JetBrains官方网站下载免费的社区版PyCharm。选择适合您的操作系统和位数的版本,然后下载并安装它。 4. 安装完成后,打开PyCharm并创建一个新项目。在“新建项目”对话框中,选择Python解释器并指定Python安装路径。如果您已将Python添加到系统环境变量中,则可以选择“系统默认”解释器。单击“创建”。 5. 现在,您可以在PyCharm中编写和运行Python代码了。在编辑器中编写代码,然后单击“运行”按钮或按下“Shift+F10”键来运行它。 希望这些步骤能够帮助您在Win11安装Python和PyCharm。 ### 回答2: 安装Python和Pycharm是计算机科学中很重要的一步,因为这两个软件是进行编程的基本工具,这里我们将讨论如何在win11安装这两个软件。 首先,我们来安装Python: 第一步,打开Python的官网https://www.python.org/downloads/,选择合适的版本进行下载,如果您还不了解不同Python的版本,建议您选择最新的稳定版本。 第二步,运行下载的Python安装程序,注意在安装过程中选择Add Python to PATH,这将向您的Path环境变量中添加Python。 第三步,安装完成后,打开命令提示符并执行python --version,如果能够正确输出Python的版本信息,则表示您已经成功安装Python。 接下来,我们来安装Pycharm: 第一步,打开Pycharm的官网https://www.jetbrains.com/pycharm/download/#section=windows,选择Community版本或者Professional版本进行下载,这里我们以Community版本为例。 第二步,运行下载的Pycharm安装程序,一路默认选择即可。 第三步,安装完成后,打开Pycharm,创建一个新的项目,选择合适的Python解释器即可开始进行编码了。 通过以上步骤,您已经成功在Win11安装Python和Pycharm,开始愉快地进行编程吧! ### 回答3: Win11操作系统是微软推出的最新一代桌面操作系统,是Windows系列中最具优秀性能和界面美观的操作系统之一。Python是一门广泛使用的编程语言,而Pycharm是针对Python语言开发的一个集成开发环境。本文将介绍如何在Win11操作系统中安装Python并配置Pycharm。 1. 下载并安装Python 首先,在Python官网(https://www.python.org/downloads/)上下载最新版本的Python。在“Download”页面,选择适合您的操作系统的版本进行下载。安装过程中应该按照提示进行。 2. 设置环境变量 打开Windows 高级系统设置(Win+R键,输入sysdm.cpl,打开“高级”选项卡,点击“环境变量”按钮),在环境变量中的“系统变量”下找到“Path”选项,编辑并将Python安装路径添加至Path变量的列表中。这样Python就可以在任何地方被访问到了,例如在cmd命令行中输入python,就可以启动Python的命令行界面。 3. 安装并配置Pycharm 下载并安装Pycharm,可以在官网(https://www.jetbrains.com/pycharm/download/)下载最新版本,选择适合您的操作系统的版本进行下载。安装过程中应该按照提示进行。安装完成后,打开Pycharm,点击“Create New Project”创建一个新项目。 在Pycharm的执行窗口中,在“Settings”下的“Project Interpreter”中,选择已经安装并配置好的Python解释器,并应用更改。 至此,我们就完成了在Win11操作系统中安装Python并且配置Pycharm的步骤。现在您就可以使用Pycharm进行Python开发了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值