无法安装python-dateutil(错误的项目名称)-不可重复的问题

时间:2019-03-12 01:19:19

标签: python installation pip python-dateutil

[已更新,因为我认为dir2pi不会引起问题。 ]

我试图在hadoop集群上安装pandas软件包及其相关软件包 python-dateutil

我能够通过 pip 轻松地在所有 节点上安装 python-dateutil 软件包。同时具有python 2.7.5和python 3.7.1(由anaconda3安装)。

当我尝试安装它时,PIP返回“错误的项目名称”错误。

我添加了以下更多信息。

  • 软件包下载到我的本地存储库中,并且索引由dir2pi生成
  • 该节点同时具有python2和python3,因此我运行pip2来安装软件包(其他没有此问题的节点仅具有python2.7)
  • 其他软件包,例如 findspark ,可以在节点上安装而不会出现此问题
  • 我检查了下载的软件包名称 python-dateutil (“-”,“ _”字符),并检查了指向该软件包的http链接,但是没有问题。基本上,其他节点可以与同一程序包一起很好地工作。

我已经花了几天时间解决这个问题。请提及我可以进一步查找的内容。

我收到以下消息。 操作系统是RHEL7.4

  

[appadmin @ MYDOMAIN_MGT01 /] $ sudo pip2 install python-dateutil -v

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A fut ure version of pip will drop support for Python 2.7.
Created temporary directory: /tmp/pip-ephem-wheel-cache-UX9J4f
Created temporary directory: /tmp/pip-req-tracker-VFFX5T
Created requirements tracker '/tmp/pip-req-tracker-VFFX5T'
Created temporary directory: /tmp/pip-install-SJMGbI
Looking in indexes: http://mydomain-bat01.com/repo/pip/simple
Collecting python-dateutil
1 location(s) to search for versions of python-dateutil:
* http://mydomain-bat01.com/repo/pip/simple/python-dateutil/
Getting page http://mydomain-bat01.com/repo/pip/simple/python-dateutil/
Starting new HTTP connection (1): mydomain-bat01.com:80
http://mydomain-bat01.com:80 "GET /repo/pip/simple/python-dateutil/ HTTP/1.1" 200 106
Analyzing links from page http://mydomain-bat01.com/repo/pip/simple/python-dateutil/
Skipping link http://mydomain-bat01.com/repo/pip/simple/python-dateutil/python-dateutil-2.8.0-py2.py3-none-any.whl (from http://mydomain-bat01.com/repo/pip/simple/python-dateutil/); wrong project name (not python-dateutil)
Could not find a version that satisfies the requirement python-dateutil (from versions: )
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-VFFX5T'
No matching distribution found for python-dateutil
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 179, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 315, in run
resolver.resolve(requirement_set)
File "/usr/lib/python2.7/site-packages/pip/_internal/resolve.py", line 131, in resolve
self._resolve_one(requirement_set, req)
File "/usr/lib/python2.7/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python2.7/site-packages/pip/_internal/resolve.py", line 242, in _get_abstract_dist_for
self.require_hashes
File "/usr/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 269, in prepare_linked_requirement
req.populate_link(finder, upgrade_allowed, require_hashes)
File "/usr/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 196, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python2.7/site-packages/pip/_internal/index.py", line 688, in find_requirement
'No matching distribution found for %s' % req
DistributionNotFound: No matching distribution found for python-dateutil`

0 个答案:

没有答案