pycharm-安装带轮屋的图书馆

发布于 2025-02-03 11:08:28 字数 574 浏览 2 评论 0原文

由于网络约束,我必须使用驾驶室文件安装库。在此驾驶室中,我有unignts.txt文件和包含所有.whl文件的whl文件。

然后,我运行了命令pip install -r unignts.txt -no-index -no-index -find-links whl -user以安装所有要求和依赖关系。当我点击pip Freeze命令时,它显示了所有依赖项已安装,包括 python软件包python-dateutil == 2.8.1

但是,当我尝试将导入Matplotlib.pyplot作为PLT时,该模块名称已识别,但会引起错误modulenotfounderror:no模块名为'dateutilil'

我尝试pip安装。\ python_dateutil-2.8.1-py2.py2.py3-none-any.whl。它说要求已经满足。我对为什么发生错误的原因有些迷失。

Due to network constraints I had to install libraries with a wheelhouse file. In this wheelhouse I had the requirements.txt file and a whl file that contained all the .whl files.

I then ran the command pip install -r requirements.txt --no-index --find-links whl --user to install all the requirements and dependencies. When I hit the pip freeze command, it shows that all the dependencies have been installed, INCLUDING python package python-dateutil==2.8.1.

Yet when I try to import import matplotlib.pyplot as plt , the module name is recognized but it raises the error ModuleNotFoundError: No module named 'dateutil'.

I tried to pip install .\python_dateutil-2.8.1-py2.py3-none-any.whl. It says that requirements are already satisfied. I'm a bit lost on why this error occurs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文