Python用pip安装自定义模块时报错: "python setup.py egg_info" failed with error code 1 in
各位大佬,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\