我对python中的setuptools还不太熟悉。我最近在我的项目中添加了一个依赖项,并且遇到了依赖项的问题。以下是问题所在:
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from mypackage import VERSION
setup(
name='mypackage',
...
version=VERSION,
packages=['mypackage'],
in
我已经按照这个tutorial向PyPI上传了一个包。我的包现在被上传到索引的测试实例:https://test.pypi.org/project/ilya-ezplots/#files。但是,当我用pip安装它时,我仍然不能导入它。 >>> import ilya_ezplots
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ilya_ezplots&
我正在尝试安装zope2.zodbbrowser0.2软件包()。安装脚本失败,出现以下错误:
Namespace package problem: zope2 is a namespace package, but its
__init__.py does not call declare_namespace()! Please fix it.
(See the setuptools manual under "Namespace Packages" for details.)
手册中的相关部分似乎是这里的一节:
但是,我不熟悉setuptools的内部结构,也无法借助手册解