pycharm-安装带轮屋的图书馆
由于网络约束,我必须使用驾驶室文件安装库。在此驾驶室中,我有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论