由于环境错误而无法安装软件包:[Errno 2]没有这样的文件或目录:

时间:2018-12-23 07:03:24

标签: python-3.x module pip

我用python构建我的第一个模块。但是,当我尝试安装模块时,会出现此错误。知道如何解决吗?

D:\py scripts\Pi aoutomation>pip install timeCheck-1.0.tar Requirement 'timeCheck-1.0.tar' looks like a filename, but the file does not exist Processing d:\py scripts\pi aoutomation\timecheck-1.0.tar Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'D:\\py scripts\\Pi aoutomation\\timeCheck-1.0.tar'

1 个答案:

答案 0 :(得分:-1)

请检查类似问题here的答案

但是,在您的情况下,您正在尝试安装*.tar.gz文件。

在使用pip install时,您需要指定文件的绝对路径。

More details here

使用:

pip install file:/absolute_path/timeCheck-1.0.tar 
相关问题