安装本地python软件包后缺少模块文件

时间:2020-06-16 18:51:49

标签: python-3.x virtualenv setuptools

我正在创建一个Python3软件包。目录结构为

x = str(input())

y = "!" * (len(x) - 4) + x[-4:]

print(x)

mypack/ setup.py mypack/ __init__.py bright.py button.py tests/ test_main.py 的内容:

setup.py

然后我运行以下命令:

from setuptools import setup, find_packages
setup(
    name="mypack",
    version="1",
    packages=find_packages(),
)

最后一条命令生成的输出为

$ python3 setup.py sdist
$ virtualenv -p python3 /tmp/python
$ /tmp/python/bin/python3 setup.py install

但是,当我查看 ... Processing mypack-1-py3.7.egg Copying mypack-1-py3.7.egg to /tmp/python/lib/python3.7/site-packages Adding mypack 1 to easy-install.pth file Installed /tmp/python/lib/python3.7/site-packages/mypack-1-py3.7.egg Processing dependencies for mypack==1 Finished processing dependencies for mypack==1 时,我没有没有在任何地方看到文件/tmp/pythonbright.py。他们在哪里?

0 个答案:

没有答案