PyCharm环境中安装pythonds-1.2.1-py3-none-any.whl的方法

这篇博客介绍了如何在Python环境中通过pip安装whl文件,特别是针对PyCharm用户,提供了详细步骤。首先,从指定链接下载pythonds-1.2.1-py3-none-any.whl,然后将文件放在Python解释器的同一目录下。接下来,在命令行中定位到Python.exe,执行pip install命令进行安装。按照这个方法,可以成功添加所需包。

这里提供pythonds-1.2.1-py3-none-any.whl的获取方法

点击前往下载: 提取码: 3v27.

一般来说使用PyCharm环境都会直接使用Anaconda中的Python文件。

想要安装直接找到python.exe文件的位置。如果不熟悉可以通过PyCharm查找。
在这里插入图片描述
将要安装的包放到和python.exe文件同一个目录下
在这里插入图片描述

在cmd中找到python.exe文件位置例如我的位置在D:\Desktop software\Anaconda
然后运行:pip install pythonds-1.2.1-py3-none-any.whl
在这里插入图片描述
现在就显示有包了
在这里插入图片描述

D:\Cursor\CUR LIB\.venv\Scripts\python.exe D:/PyCharm/PyCharm 2025.2/plugins/python-ce/helpers/packaging_tool.py install -r D:/Cursor/CUR LIB/requirements.txt Collecting pytest==7.4.3 (from -r D:/Cursor/CUR LIB/requirements.txt (line 2)) Using cached pytest-7.4.3-py3-none-any.whl.metadata (7.9 kB) Collecting pytest-html==4.1.1 (from -r D:/Cursor/CUR LIB/requirements.txt (line 3)) Using cached pytest_html-4.1.1-py3-none-any.whl.metadata (3.9 kB) Collecting pytest-xdist==3.3.1 (from -r D:/Cursor/CUR LIB/requirements.txt (line 4)) Using cached pytest_xdist-3.3.1-py3-none-any.whl.metadata (3.1 kB) Collecting selenium==4.15.2 (from -r D:/Cursor/CUR LIB/requirements.txt (line 5)) Using cached selenium-4.15.2-py3-none-any.whl.metadata (6.9 kB) Collecting requests==2.31.0 (from -r D:/Cursor/CUR LIB/requirements.txt (line 6)) Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting beautifulsoup4==4.12.2 (from -r D:/Cursor/CUR LIB/requirements.txt (line 7)) Using cached beautifulsoup4-4.12.2-py3-none-any.whl.metadata (3.6 kB) Collecting pandas==2.1.3 (from -r D:/Cursor/CUR LIB/requirements.txt (line 8)) Using cached pandas-2.1.3.tar.gz (4.3 MB) Installing build dependencies: started Installing build dependencies: still running... Installing build dependencies: finished with status &#39;error&#39; error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 [57 lines of output] Ignoring oldest-supported-numpy: markers &#39;python_version < "3.12"&#39; don&#39;t match your environment Collecting meson-python==0.13.1 Using cached meson_python-0.13.1-py3-none-any.whl.metadata (4.1 kB) Collecting meson==1.2.1 Using cached meson-1.2.1-py3-none-any.whl.metadata (1.7 kB) Collecting wheel Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB) Collecting Cython<3,>=0.29.33 Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB) Collecting numpy<2,>=1
08-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值