我正在尝试从github安装此模块。
https://github.com/ChristianSchneeweiss/Chat-txt-to-csv
首先,我正在按照此处列出的步骤进行操作。 https://medium.com/i-want-to-be-the-very-best/installing-packages-from-github-with-conda-commands-ebf10de396f4
所以我在Anaconda Powershell Prompt中使用了这一行
pip install git+git://github.com/ChristianSchneeweiss/Chat-txt-to-csv.git
它没有用。然后根据此处的建议使用此代码。 Use package from Github in Conda Virtual Environment
pip install C:\Users\Lulz\Documents\mamanitip\chat_wa\Chat-txt-to-csv-master.zip
它也不起作用。这两个代码均导致此错误。
command: 'C:\ProgramData\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lulz\\AppData\\Local\\Temp\\pip-req-build-2cr6dd41\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lulz\\AppData\\Local\\Temp\\pip-req-build-2cr6dd41\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Lulz\AppData\Local\Temp\pip-pip-egg-info-3o0zsjkm' cwd: C:\Users\Lulz\AppData\Local\Temp\pip-req-build-2cr6dd41\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\ProgramData\Anaconda3\lib\tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Lulz\\AppData\\Local\\Temp\\pip-req-build-2cr6dd41\\setup.py' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我曾尝试创建新的Microsoft帐户,并在新的环境中安装,但仍然无法正常工作。它总是导致相同的错误,只是不同的用户(当我更改Microsoft帐户时)。我做错了什么?非常感谢您的帮助。
答案 0 :(得分:1)
https://github.com/ChristianSchneeweiss/Chat-txt-to-csv处的软件包不能与@Pipe({
name: 'myDateFormat'
})
export class MyDateFormat extends DatePipe implements PipeTransform {
transform(value: any, args?: string): any {
let formatter;
switch (args) {
case 'D_FMT':
{
formatter = super.transform(value, DC.D_FMT);
break;
}
case 'D_T_FMT':
{
formatter = super.transform(value, DC.D_T_FMT);
break;
}
default:
{
formatter = super.transform(value, 'dd/mm');
break;
}
}
return formatter;
}
}
export class DC {
static readonly D_FMT = 'MM/dd/yy';
static readonly D_T_FMT = `${DC.D_FMT} hh:mm aa`;
}
一起安装,因为它没有文件pip
。相反,您可以做的是将项目下载到计算机上,安装项目的依赖项,然后从目录中使用该项目。如果您从该项目的目录中运行python,它将找到该软件包。
setup.py