r语言 - AttributeError:"list"对象在通过 setup.py 脚本安装 Python 包时没有属性"split"



我正在尝试安装Python包"py_coda";从这个github:

https://github.com/surhudm/py-coda

我正在遵循README.md中的步骤,但当我输入以下命令时:

python setup.py install

我收到以下错误:

运行install/home/osris/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/command/install.py:34:SetuptoolsDeprecation警告:不赞成安装setup.py。使用构建和pip以及其他基于标准的工具。warnings.warn(/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/command/easy_install.py:144:EasyInstallDeprecation警告:不赞成使用easy_install命令。请使用build、pip和其他基于标准的工具。warnings.warn(运行bdist_egg运行egg_info正在写入src/py_coda.egg-info/PKG-info Traceback(最后一次调用):文件"/mnt/c/Users/Owner/Desktop/Sstage_2022/BH_M-sigma_compilation/py-coda/setup.py";,第5行,设置中(name="y-coda",文件"/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/_dstutils/core.py",第148行,在setup return run_commands(dist)中)文件"/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/_distutils/core.py";,第163行,在run_commandsdist.run_commands()File"/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/dist.py";,第967行,在run_commandsself.run_command(cmd)File"/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/dist.py";,第1214行,在run_command super()中/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/dist.py";,第986行,在run_command cmd_obj.run()File"/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/command/install.py";,第74行,在run self.do_egg_install()File"/home/osrunds/mnt/c/Users/Owner/anaconda3/lib/python3.9/site packages/setuptools/command/install.py";,第123行,在do_egg_install self.run_command('bdist_eg')中

我不确定是什么原因导致的,也不确定如何解决。

您可以尝试通过从源代码(git)进行安装

pip install git+https://github.com/surhudm/py-coda

最新更新