Python用pip安装自定义模块时报错: "python setup.py egg_info" failed with error code 1 in

David626 2018-06-06 09:03:26
各位大佬,python小白求助!win10,64位,python3.5 。照着《head first python(第二版)》第179页,自己写了一个P173_vsearch_module.py和setup.py(如下)的文件:

from setuptools import setup
setup(
name='vsearch', #代码重点
version='1.0',
description='the head first python search tools,page 173',
author='the author of the head first',
author_email='hfpye@gmail.com',
url='headfirstables.com',
py_modules=['P173_vsearch_module'], #代码重点
)

然后用 py -3 setup.py sdist 发布,dist文件夹下生成了vsearcch-1.0.zip 的模块包,然后想安装此模块,使用命令 py -3 -m pip install vsearch-1.0.zip,就报错了,请问各位大佬怎么解决呢?

Processing d:\我的python小程序\mymodules\dist\vsearch-1.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\QIANG\AppData\Local\Programs\Python\Python35\lib\tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\QIANG\\AppData\\Local\\Temp\\pip-req-build-ndc5ghcb\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\QIANG\AppData\Local\Temp\pip-req-build-ndc5ghcb\
...全文
45565 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧