PIP安装“错误:程序包目录'X'不存在" [英] PIP install "error: package directory 'X' does not exist"
本文介绍了PIP安装“错误:程序包目录'X'不存在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过PIP安装此程序包.它给了我以下错误:
I am trying to install this package via PIP. It gives me the following error:
error: package directory 'RTbatch' does not exist
我觉得这很奇怪,因为相关的setup.py
没有提及任何py_modules
.
I find this weird, because the relevant setup.py
does not mention any packages
variable, but only py_modules
.
怎么了?你能帮我吗?
What's wrong? Can you help me out?
这是pip install -e RTbatch
的完整输出:
Obtaining file:///home/chymera/RTbatch
Running setup.py (path:/home/chymera/RTbatch/setup.py) egg_info for package from file:///home/chymera/RTbatch
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'heywords'
warnings.warn(msg)
error: package directory 'RTbatch' does not exist
Complete output from command python setup.py egg_info:
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'heywords'
warnings.warn(msg)
running egg_info
creating RTbatch.egg-info
writing requirements to RTbatch.egg-info/requires.txt
writing RTbatch.egg-info/PKG-INFO
writing top-level names to RTbatch.egg-info/top_level.txt
writing dependency_links to RTbatch.egg-info/dependency_links.txt
writing manifest file 'RTbatch.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
error: package directory 'RTbatch' does not exist
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/chymera/RTbatch
Storing debug log for failure in /home/chymera/.pip/pip.log
推荐答案
py_modules
列出模块名称而不是文件的列表.您的通话会寻找RTBatch/py.py
和RTBatch_cli/py.py
.
py_modules
takes a list of module names, not files. Your call looks for RTBatch/py.py
and RTBatch_cli/py.py
.
这篇关于PIP安装“错误:程序包目录'X'不存在"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文