<p>我是python新手,我想知道您是否可以帮我运行python脚本。我正在尝试从Github运行一个名为PunchBox的脚本:<a href="https://github.com/psav/punchbox" rel="nofollow noreferrer">https://github.com/psav/punchbox</a>。到目前为止,我已经有了Python3.9.5和GitBash</p>
<p>在GitHub页面中,它显示:</p>
<p>要安装,请将repo、cd克隆到其中,然后执行以下操作:</p>
<pre><code>virtualenv -p python2 .pb2
source .pb2/bin/activate
pip install -U pip
pip install .
</code></pre>
<p>这到底是什么意思?在哪里运行此代码</p>
<p>到目前为止,我试着从GitHub下载zip文件,安装Python3.5.9,使用cmd,用cd查找目录,并运行代码;但有一个错误:</p>
<blockquote>
<p>Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name punchbox was given, but was not able to be found.</p>
<p>error in punchbox setup command: Error parsing C:\Users\Mi\Downloads\punchbox-master\punchbox-master\setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name punchbox was given, but was not able to be found.</p>
</blockquote>
<p>还有一个requirements.txt,列出了所需的其他脚本:</p>
<pre><code>pre-commit
click
mido
pbr
PyYAML
svgwrite
</code></pre>
<p>第一次运行脚本时是否自动安装</p>
<p>我有点困惑为什么我会出错。你知道我做错了什么吗</p>
<p>非常感谢你!
乔瓦尼</p>